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

Re: git push <branch-name>

From
Michael J Gruber <git@drmicha.warpmail.net>
Date
Oct 7, 2010, 10:50 UTC
Message-ID
<4CADA5E3.5060405@drmicha.warpmail.net>
In-Reply-To
<AANLkTi=k9aEqpvoEvU5f-t-63==fouFmJ+OxO=6sQd89@mail.gmail.com>
Eric Raible venit, vidit, dixit 06.10.2010 02:52:
Show 15 quoted lines
> On Tue, Oct 5, 2010 at 3:35 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:
>> Since it is such a simple command expansion, why not create an alias
>> that does just that?
> 
> Because I don't want an alias, I want to extend git-push.
> 
> According to the man page, "git push"
> 
> "Works like git push <remote>, where <remote> is the current branch's remote
>  (or origin, if no remote is configured for the current branch)."
> 
> What I'm advocating is that "git push <branch>" would be described with:
> 
> "Works like git push <remote> <branch>, where <remote> is the <branch>'s remote
>  (or origin, if no remote is configured for <branch>)."
Now, if I have a remote foo and a branch foo, what is
git push foo
supposed to do?
Michael
Previous: Eric RaibleNext: Eric Raible
Message 4 of 6 in “git push <branch-name>”
  1. Eric RaibleOct 5, 2010
  2. Sverre RabbelierOct 5, 2010
  3. Eric RaibleOct 6, 2010
  4. Michael J GruberOct 7, 2010
  5. Eric RaibleOct 7, 2010
  6. Michael J GruberOct 8, 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.