Git index resets itself

Posted by trobrock on Stack Overflow See other posts from Stack Overflow or by trobrock
Published on 2010-06-03T15:32:07Z Indexed on 2010/06/03 15:34 UTC
Read the original article Hit count: 314

Filed under:
|
|
|

Every so often when I run git add . to add new files to my repo my git index will reset and think all the files in the repo have been deleted. I run these commands:

git status
git add .
git status
git commit -a -m "Commit message"

everything looks fine at all those points until I commit and it says every file was deleted, all I have to do it run git add . and commit again to get the files back, but this becomes a pain. And this doesnt happen every time, maybe about 40% of the time. Anyone know why this might happen?

I am on Mac OS 10.6.3 with Git 1.6.6

© Stack Overflow or respective owner

Related posts about git

Related posts about mac