From: Sergei Organov Date: Thu, 13 Oct 2011 17:06:10 GMT Subject: Re: [BUG] git checkout allowed with uncommitted changes Message-ID: <871uug7rel.fsf@osv.gnss.ru> In-Reply-To: arQon writes: [...] > Lucky you. :P The most likely reason for me is, I'm working on something > and I get interrupted and have to switch. Since the code may well not even > compile at this point, the last thing I want to do is commit it. 'git stash' is exactly what you need then. -- Sergei.