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

Re: git push <branch-name>

From
Daniel Johnson <computerdruid@gmail.com>
Date
Oct 5, 2010, 22:11 UTC
Message-ID
<201010051811.49211.ComputerDruid@gmail.com>
On Tuesday 05 October 2010 16:29:50 you wrote:
Show 9 quoted lines
> A newbie colleague asked why: "git push <branch>" didn't work.
> 
> Although I know that "git push <repo> <branch>" is the correct
> syntax, I think that he has a point.  If branch.<branch>.remote
> is defined it seems unambiguous to me.
> 
> So I can't see any reason NOT to dwimify
> 
>     git push <branch>

Isn't that syntax reserved for remotes? for example:

git push origin

I feel like it would be a bad idea to have these 2 types of invocations overlap in syntax like that.

Next: Eric Raible
Message 1 of 3 in “Re: git push <branch-name>”
  1. Daniel JohnsonOct 5, 2010
  2. Eric RaibleOct 5, 2010
  3. Sebastian HarlOct 6, 2010

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.