Re: Simple shortcut for "git push --set-upstream origin newBranchName"
From: Denton Liu <hidden>
Date: 2019-05-31 15:11:31
From: Denton Liu <hidden>
Date: 2019-05-31 15:11:31
On Fri, May 31, 2019 at 02:56:12PM +0000, Cliff Schomburg wrote:
Wow, I did not see that in the man pages... but I see it now. Thanks! So I guess I would change my ask to this: "git push -u" Should default to "origin branch" if no parameters are provided. Thoughts?
I'll do you one better. You can run $ git push -u origin HEAD and HEAD will mean the current branch, so you'll only need to specify the remote (in our case, origin). Perhaps you could alias that to something like `git push-up`.
Thanks, Cliff -----Original Message----- From: Patryk Obara <redacted> Sent: Friday, May 31, 2019 10:51 AM To: Cliff Schomburg <redacted>; git@vger.kernel.org Subject: Re: Simple shortcut for "git push --set-upstream origin newBranchName" On 31/05/2019 16:45, Cliff Schomburg wrote:quoted
I'm proposing a shortcut for this command.What's wrong with "$ git push -u origin branch"? -- Patryk Obara