From: Luke Hutchison Date: Sun, 17 Apr 2011 19:09:18 GMT Subject: Re: git leaves repo in bad state in out-of-space situation Message-ID: In-Reply-To: Hi Dmitry, On Sun, Apr 17, 2011 at 9:38 AM, Dmitry Potapov wrote: > The repository is not borked, it's just your working tree is in an > inconsistent state, but it is easy to fix: > > git reset --hard HEAD Ah, sounds like my intuition that simply freeing up space and then re-pulling should have fixed the problem was wrong. Your explanation makes sense. > BTW, did you mean "git pull" above? Because if you did "git push" > then those bogus changes are at the server now. No, I work with a centralized repository which requires push operations. I know this negates the benefit of distributed SCM. > It always helps to run "gitk --all" to see what you are doing. > [...] > So, the general solution is only one: > >  git reset --hard HEAD Thank you for your patient responses to what turned out to be a very basic question! My typical git workflow is very simple and has worked fine until I ran out of disk space. Luke