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

:; 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


Reply via email to