I found this answer to work quite well so far, for my limited testing. http://cygwin.com/ml/cygwin/2007-09/msg00584.html. Basically text mounts mess everything up. Git will work on binary mounts of cygwin.
On Saturday, December 1, 2012 2:49:40 PM UTC-8, munene kiruja wrote: > > Git already came in with the cygwin install. So I thought I could just > start using it. After 2 days of reading and searching, not even one step > ahead. Anyone help. What am I doing wrong? > > :; git --version > git version 1.7.9 > > mkdir ~/dev/testGit > cd ~/dev/testGit > git init > Initialized empty Git repository in /home/dev/testGit/.git/ > > now the trouble: > :; git log > fatal: bad default revision 'HEAD' > > What have I already missed? > > :; cat > foo.txt > this is a test > ^C > > :; git add . > fatal: cannot use .git/info/exclude as an exclude file > > So I just hide the file > > :; mv .git/info/exclude .git/info/exclude.bak > :; git add . > > :; git status > # On branch master > # > # Initial commit > # > # Changes to be committed: > # (use "git rm --cached <file>..." to unstage) > # > # new file: foo.txt > # > > :; git commit -a > error: bad index file sha1 signature > fatal: index file corrupt > > --