From: Martin Langhoff Date: Sun, 22 Apr 2007 23:25:01 GMT Subject: git-checkout changes the index but not the checked out files? Message-ID: <46a038f90704221625k216864cdwb2b35bc035fac7e9@mail.gmail.com> I am a bit confused by git-checkout behaviour in the following scenario. $ git version git version 1.5.1.gf8ce1 $ git-branch mdl17-polhn * mdl18-local mdl18-topnz $ git-status # checkout an upstream branch to test that it has a bug $ git-checkout origin/MOODLE_18_STABLE $ git-status # switch back to our local branch to test that the bug is gone $ git-checkout mdl18-local $ git-status $ git-reset --hard # this fixes things back to normal Is the bug in git-checkout or in my understanding? ;-) Perhaps I am modelling my use of git-checkout on how I used cg-switch and that's wrong. But reading the man page, it says: When are not given, this command switches branches by updating the index and working tree to reflect the specified branch, , and updating HEAD to be cheers, martin