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

Re: Not pushing all branches?

From
Jeff King <peff@peff.net>
Date
Mar 17, 2009, 08:24 UTC
Message-ID
<20090317082457.GG18475@coredump.intra.peff.net>
In-Reply-To
<874oxwgbcr.fsf@catnip.gol.com>
On Sat, Mar 14, 2009 at 10:08:20AM +0900, Miles Bader wrote:
Show 10 quoted lines
> e.g., "git diff REMOTE_BRANCH" to see what updates are pending if I
> merge...  Also, it would be nice to have a more concise way to say
> "git merge REMOTE_BRANCH".
> 
> I'm not sure "-" seems like the best syntax though... maybe it's a bit
> _too_ short.
> 
> [Is there a general standard syntax for "keywords" in git, e.g., to
> distinguish them from branch/rev names?  I mean, if the standard syntax
> were "@foo", then one could imagine "git diff @remote" or something.]

I think all-caps is the closest we get. E.g., you probably don't want to name a branch MERGE_HEAD, ORIG_HEAD, FETCH_HEAD, etc. But it's purely advisory; you _can_ make such branches and then deal with the ensuing "ambiguous ref" messages.

-Peff
Previous: Miles BaderNext: Jeff King
Message 15 of 27 in “Not pushing all branches?”
  1. Peter KreftingMar 13, 2009
  2. Imran M YousufMar 13, 2009
  3. Peter KreftingMar 13, 2009
  4. Johannes SchindelinMar 13, 2009
  5. Finn Arne GangstadMar 13, 2009
  6. John TapsellMar 13, 2009
  7. Johannes SchindelinMar 13, 2009
  8. John TapsellMar 13, 2009
  9. Johannes SchindelinMar 13, 2009
  10. John TapsellMar 13, 2009
  11. Michael J GruberMar 13, 2009
  12. Johannes SchindelinMar 13, 2009
  13. Junio C HamanoMar 13, 2009
  14. Miles BaderMar 14, 2009
  15. Jeff KingMar 17, 2009
  16. Jeff KingMar 13, 2009
  17. git-push.txt: describe how to default to pushing only current branchChris Johnsen, Mar 14, 2009
  18. Junio C HamanoMar 14, 2009
  19. Jeff KingMar 14, 2009
  20. Jeff KingMar 14, 2009
  21. Chris JohnsenMar 15, 2009
  22. Chris JohnsenMar 15, 2009
  23. Jeff KingMar 17, 2009
  24. Junio C HamanoMar 14, 2009
  25. Jeff KingMar 14, 2009
  26. Junio C HamanoMar 16, 2009
  27. git-push.txt: describe how to default to pushing only current branchChris Johnsen, Mar 15, 2009

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.