mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Cliff Schomburg <>
To: "" <>
Subject: RE: Simple shortcut for "git push --set-upstream origin newBranchName"
Date: Fri, 31 May 2019 14:45:05 +0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Resending as plain text

From: Cliff Schomburg 
Sent: Thursday, May 30, 2019 6:29 PM
Subject: Simple shortcut for "git push --set-upstream origin newBranchName"

Hi all,

This is more of a suggestion than a bug report.

I create new topic branches quite frequently and push them into the remote repo (origin).

It's a bit of a hassle to type "git push -set-upstream origin newBranchName" each and every time I want to push a new branch.

I'm proposing a shortcut for this command.  Perhaps "git push -default" or "git push -new-branch" which could be shortened to "git push -d" or "git push -nb" or something.

Based on the man-page for push, it looks like this could be an alias for:
    "git push -set-upstream origin HEAD"
In which case HEAD should always be the current branch name.

Thoughts?  Concerns?


       reply	other threads:[~2019-05-31 14:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <>
     [not found] ` <>
     [not found]   ` <>
2019-05-31 14:45     ` Cliff Schomburg [this message]
2019-05-31 14:51       ` Simple shortcut for "git push --set-upstream origin newBranchName" Patryk Obara
2019-05-31 14:56         ` Cliff Schomburg
2019-05-31 15:05           ` Patryk Obara
2019-05-31 15:13             ` Cliff Schomburg
2019-06-03 21:34               ` Cliff Schomburg
2019-05-31 15:11           ` Denton Liu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).