Tuesday, July 12, 2011

GIT: Compare/Diff working directory against server/repository state

git fetch --> updates your local rep but not your working Dir
git diff ... origin gives you the comparison

Monday, July 11, 2011

GIT: Ignore File mode/right changes

If you have files or directories under git control and change the rights of them, git does recognize them as changed.
To force git to ignore these changes just execute the following.

git config core.filemode false

You can reenable that after all files have a new revision because of an actual change and are comitted in the new mode anyway.