From: Björn Steinbrink Date: Tue, 01 Jul 2008 18:01:09 GMT Subject: Re: [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commits. Message-ID: <20080701180109.GA14026@atjola.homenet> In-Reply-To: <20080701100725.GE31309@elte.hu> On 2008.07.01 12:07:25 +0200, Ingo Molnar wrote: > There's a small detail i was thinking about: is there a way to get this > extra output without actually switching branches? Right now i do this: > > earth4:~/tip> git-checkout tip; git-checkout master > Checking out files: 100% (2437/2437), done. > Switched to branch "tip" > Switched to branch "master" > Your branch is ahead of the tracked remote branch 'origin/master' by > 50 commits. > > (Which is an admitted lame solution but the best i could figure.) Just "git checkout" works for me: git (master) $ git checkout Your branch is behind the tracked remote branch 'origin/master' by 6 commits, and can be fast-forwarded. Björn