git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Convenient shortcut to push delete current branch?
@ 2015-10-01 16:43 Robert Dailey
  2015-10-01 18:22 ` Jacob Keller
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Dailey @ 2015-10-01 16:43 UTC (permalink / raw)
  To: Git

For convenient pushing of current branch, git supports this syntax:

$ git push origin HEAD

This will push your current branch up. However, is there such a
shortcut for *deleting* the branch? The only goal here is to avoid
having to type the branch name in the push command. Normally I rely on
tab completion but we have tons of branches, all which start with some
prefix mixed with numbers, so it becomes cumbersome to rely on tab
completion. Ideally I'd like to be able to do:

$ git push --delete origin HEAD
$ git push origin :HEAD

Is there a syntax like this available?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-10-02 13:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 16:43 Convenient shortcut to push delete current branch? Robert Dailey
2015-10-01 18:22 ` Jacob Keller
2015-10-01 18:37   ` Robert Dailey
2015-10-02 13:33     ` Mike Rappazzo

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 NNTP newsgroup(s).