git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commits.

From
MMMikael Magnusson <mikachu@gmail.com>
Date
Jul 1, 2008, 12:46 UTC
Message-ID
<237967ef0807010546m3eb6f824vd5514c5824c00ddd@mail.gmail.com>
In-Reply-To
<20080701100725.GE31309@elte.hu>
2008/7/1 Ingo Molnar <mingo@elte.hu>:
Show 14 quoted lines
> * Junio C Hamano <gitster@pobox.com> wrote:
>
>> Ingo Molnar <mingo@elte.hu> writes:
>>
>> > i recently switched to 1.5.6.1.89.gd5446 and i'm getting this:
>> >
>> >   Switched to branch "master"
>> >   Your branch is ahead of the tracked remote branch 'origin/master' by 50 commits.
>> >
>> > it's a very useful detail! It's especially useful when two branches
>> > diverge in a non-trivial way.
>> > ...
>> > but having a reminder at checkout time is even better (and faster as
>> > well). Kudos.
[snippy]
Show 10 quoted lines
> 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.)

{14:44:16|~code/git}% git checkout master Checking out files: 100% (180/180), done. Switched to branch "master" {14:44:24|~code/git}% git shard HEAD\~5 HEAD is now at 8e69d78 Merge branch 'maint' {14:44:28|~code/git}% git checkout HEAD Your branch is behind the tracked remote branch 'origin/master' by 6 commits, and can be fast-forwarded.

-- 
Mikael Magnusson
Previous: Pedro MeloNext: Björn Steinbrink
Message 27 of 28 in “[OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commits.”
  1. Ingo MolnarJul 1, 2008
  2. Bruce StephensJul 1, 2008
  3. Ingo MolnarJul 1, 2008
  4. SZEDER GáborJul 1, 2008
  5. Jakub NarebskiJul 1, 2008
  6. Junio C HamanoJul 1, 2008
  7. 0/3 Making remote tracking statistics available to other toolsJunio C Hamano, Jul 2, 2008
  8. Olivier MarinJul 3, 2008
  9. Junio C HamanoJul 3, 2008
  10. Olivier MarinJul 3, 2008
  11. 1/3 Refactor "tracking statistics" code used by "git checkout"Junio C Hamano, Jul 2, 2008
  12. 2/3 git-status: show the remote tracking statisticsJunio C Hamano, Jul 2, 2008
  13. 3/3 git-branch -v: show the remote tracking statisticsJunio C Hamano, Jul 2, 2008
  14. Johannes SixtJul 2, 2008
  15. Karl HasselströmJul 2, 2008
  16. Brian GernhardtJul 2, 2008
  17. Junio C HamanoJul 2, 2008
  18. Johannes SchindelinJul 2, 2008
  19. Jakub NarebskiJul 1, 2008
  20. Junio C HamanoJul 1, 2008
  21. Ingo MolnarJul 1, 2008
  22. Miklos VajnaJul 1, 2008
  23. Ingo MolnarJul 1, 2008
  24. Miklos VajnaJul 1, 2008
  25. Junio C HamanoJul 1, 2008
  26. Pedro MeloJul 4, 2008
  27. Mikael MagnussonJul 1, 2008
  28. Björn SteinbrinkJul 1, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.