From: Miklos Vajna Date: Mon, 21 Jul 2008 21:44:59 GMT Subject: Re: [PATCH] checkout without arguments does not make sense Message-ID: <20080721214459.GJ32057@genesis.frugalware.org> In-Reply-To: <32541b130807211436h77bf5985xa61ed7b4941c47dc@mail.gmail.com> On Mon, Jul 21, 2008 at 05:36:59PM -0400, Avery Pennarun wrote: > Eek, are we using "checkout" to get status information now? If that > goes wrong, you could be blowing away your locally modified data by > accident. Hm, let's say I have uncommitted changes to Makefile, then I'll get: $ git checkout M Makefile Your branch is ahead of the tracked remote branch 'junio/next' by 1 commit. But it will not drop my local changes. > I think "git status" reports this information in recent versions, doesn't it? Right. But that shows other infos as well, for example the untracked files, etc. So there are cases when git checkout is just better. However, you are right about it may not be the best habit from my side to use git checkout to get that info. ;-)