Re: [BUG] git checkout <branch> allowed with uncommitted changes
- From
- Sergei Organov <osv@javad.com>
- Date
- Oct 13, 2011, 17:06 UTC
- Message-ID
- <871uug7rel.fsf@osv.gnss.ru>
- In-Reply-To
- <loom.20111013T171530-970@post.gmane.org>
arQon <arqon@gmx.com> 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.