On Mon, Jul 21, 2008 at 05:36:59PM -0400, Avery Pennarun <apenwarr@xxxxxxxxx> 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. ;-)
Attachment:
pgpjxKCOhLfhO.pgp
Description: PGP signature