{"thread":{"id":"25360","subject":"git push <branch-name>","startedAt":"2010-10-05T20:29:50Z","lastAt":"2010-10-08T06:17:43Z","messageCount":6,"participants":["Eric Raible","Sverre Rabbelier","Michael J Gruber"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"152712","messageId":"AANLkTineD3DYsBJBBt13-EWX0_1YUf1cf1wTGUL-jRkg@mail.gmail.com","threadId":"25360","inReplyTo":null,"subject":"git push <branch-name>","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2010-10-05T20:29:50Z","receivedAt":"2010-10-05T20:29:50Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"A newbie colleague asked why: \"git push <branch>\" didn't work.\n\nAlthough I know that \"git push <repo> <branch>\" is the correct\nsyntax, I think that he has a point.  If branch.<branch>.remote\nis defined it seems unambiguous to me.\n\nSo I can't see any reason NOT to dwimify\n\n    git push <branch>\n\ninto\n\n    git push $(git config branch.<branch>.remote) <branch>\n\nWhat am I missing?\n"},{"id":"152734","messageId":"AANLkTinjEoDWhq_EWPj+z++g-b7XMA9d2orXRGtuHyRB@mail.gmail.com","threadId":"25360","inReplyTo":"AANLkTineD3DYsBJBBt13-EWX0_1YUf1cf1wTGUL-jRkg@mail.gmail.com","subject":"Re: git push <branch-name>","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2010-10-05T22:35:16Z","receivedAt":"2010-10-05T22:35:16Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Tue, Oct 5, 2010 at 22:29, Eric Raible <raible@gmail.com> wrote:\n>    git push $(git config branch.<branch>.remote) <branch>\n\nSince it is such a simple command expansion, why not create an alias\nthat does just that?\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"152737","messageId":"AANLkTi=k9aEqpvoEvU5f-t-63==fouFmJ+OxO=6sQd89@mail.gmail.com","threadId":"25360","inReplyTo":"AANLkTinjEoDWhq_EWPj+z++g-b7XMA9d2orXRGtuHyRB@mail.gmail.com","subject":"Re: git push <branch-name>","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2010-10-06T00:52:26Z","receivedAt":"2010-10-06T00:52:26Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"On Tue, Oct 5, 2010 at 3:35 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:\n> Since it is such a simple command expansion, why not create an alias\n> that does just that?\n\nBecause I don't want an alias, I want to extend git-push.\n\nAccording to the man page, \"git push\"\n\n\"Works like git push <remote>, where <remote> is the current branch's remote\n (or origin, if no remote is configured for the current branch).\"\n\nWhat I'm advocating is that \"git push <branch>\" would be described with:\n\n\"Works like git push <remote> <branch>, where <remote> is the <branch>'s remote\n (or origin, if no remote is configured for <branch>).\"\n"},{"id":"152868","messageId":"4CADA5E3.5060405@drmicha.warpmail.net","threadId":"25360","inReplyTo":"AANLkTi=k9aEqpvoEvU5f-t-63==fouFmJ+OxO=6sQd89@mail.gmail.com","subject":"Re: git push <branch-name>","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-10-07T10:50:11Z","receivedAt":"2010-10-07T10:50:11Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Eric Raible venit, vidit, dixit 06.10.2010 02:52:\n> On Tue, Oct 5, 2010 at 3:35 PM, Sverre Rabbelier <srabbelier@gmail.com> wrote:\n>> Since it is such a simple command expansion, why not create an alias\n>> that does just that?\n> \n> Because I don't want an alias, I want to extend git-push.\n> \n> According to the man page, \"git push\"\n> \n> \"Works like git push <remote>, where <remote> is the current branch's remote\n>  (or origin, if no remote is configured for the current branch).\"\n> \n> What I'm advocating is that \"git push <branch>\" would be described with:\n> \n> \"Works like git push <remote> <branch>, where <remote> is the <branch>'s remote\n>  (or origin, if no remote is configured for <branch>).\"\n\nNow, if I have a remote foo and a branch foo, what is\n\ngit push foo\n\nsupposed to do?\n\nMichael\n"},{"id":"152889","messageId":"AANLkTikwmF74453He4q49CmdxYSREUQanx6JSoW8xxSL@mail.gmail.com","threadId":"25360","inReplyTo":"4CADA5E3.5060405@drmicha.warpmail.net","subject":"Re: git push <branch-name>","fromName":"Eric Raible","fromEmail":"raible@gmail.com","sentAt":"2010-10-07T17:41:27Z","receivedAt":"2010-10-07T17:41:27Z","isPatch":false,"sender":{"key":"raible@gmail.com","avatar":null},"body":"On Thu, Oct 7, 2010 at 3:50 AM, Michael J Gruber\n<git@drmicha.warpmail.net> wrote:\n>\n> Now, if I have a remote foo and a branch foo, what is\n>\n> git push foo\n>\n> supposed to do?\n\nhttp://thread.gmane.org/gmane.comp.version-control.git/158235/focus=158254\n"},{"id":"152948","messageId":"4CAEB787.6000701@drmicha.warpmail.net","threadId":"25360","inReplyTo":"AANLkTikwmF74453He4q49CmdxYSREUQanx6JSoW8xxSL@mail.gmail.com","subject":"Re: git push <branch-name>","fromName":"Michael J Gruber","fromEmail":"git@drmicha.warpmail.net","sentAt":"2010-10-08T06:17:43Z","receivedAt":"2010-10-08T06:17:43Z","isPatch":false,"sender":{"key":"git@grubix.eu","avatar":"https://avatars.githubusercontent.com/u/233215?v=4"},"body":"Eric Raible venit, vidit, dixit 07.10.2010 19:41:\n> On Thu, Oct 7, 2010 at 3:50 AM, Michael J Gruber\n> <git@drmicha.warpmail.net> wrote:\n>>\n>> Now, if I have a remote foo and a branch foo, what is\n>>\n>> git push foo\n>>\n>> supposed to do?\n> \n> http://thread.gmane.org/gmane.comp.version-control.git/158235/focus=158254\n\nYep, I saw it later only - Daniel had broken the thread.\n\nMichael\n"}]}