Friday, January 11, 2008

 

Source Control with git and cygwin

I have been using CVS for years, but I wanted to check in an entire tree like SVN.
I looked at switching to SVN, but ended up switching to git instead.

If you use git on cygwin, you must be sure your disks are mounted binmode or your database will get corrupted!

I had all my disks but one mounted binmode, but I also had a symbolic link that ended up using that one textmode mount. This corrupted the index and I got:

error: bad index file sha1 signature
fatal: index file corrupt

After trying many things, I deleted .git/index and ran git-reset which regenerated the file.

Comments:
thanks for this. I ran dos2unix on a repo with windows line endings and that also corrupted the index file. This seems to have worked.
 
Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?