March 24, 2011
I have recently had to run git on Windows, and things there get all weird because by default git uses file mode as part of its comparison. Because of this, files whose mode have changed show up as different.
Luckily, git has a way around this:
git config core.filemode false
January 11, 2011
I’m just starting to use git for source control. Tonight I got an error when I tried to commit:
$ git add ./foo/bar/
error: unable to create temporary sha1 filename .git/objects/95: File exists
error: foo/bar/baz: failed to insert into database
Luckily, someone else ran into this before me. The magic incantation:
and then I was able to add my files.
I ran into another case where this didn’t help. In that instance,
was able to get me committing again.