Dienstag, 23. November 2010

Mittwoch, 30. Juni 2010

Git ignore already added files

dear world,

I wanted git to ignore files that I have already added to the repository. Unfortunately, if a file was added, changing .gitignore does not help. But there are two options:

  • git update-index --assume-unchanged [filename(s)]
  • git update-index --skip-worktree [path_to_ignore]
the first tells git to ignore changes to single files;
the second tells it to ignore all files below a given path .. a complete directory.

so far this works and I hope I did not mess something up.

regards,

s

Freitag, 5. März 2010

error C2275 illegal use of this type as an expression

You are probably programming c or c++ and banging your head against the wall because of error C2275 illegal use of this type as an expression.

check if you have declared a variable after the frist assignment in a function! remember: in c all variables have to be declared before any other statement.

stop banging!