Thread (6 messages) flat view 6 messages, 3 authors, 2016-06-15

Re: How to manage heads on a remote repository?

From: David Symonds <hidden>
Date: 2016-06-15 22:43:41

On 14/10/2007, Theodore Tso [off-list ref] wrote:
On Sun, Oct 14, 2007 at 09:03:48PM +1000, David Symonds wrote:
quoted
git push <remote> :<branch_name>

If the left side of the colon in a push refspec is empty, it deletes
the remote ref given by the right hand side.
Cool, thanks!  It's not in the git-push man page.  I'll play with it
some and then submit a patch update the man page.
Yes, it is, including in the examples section. Under the <refspec>
options description it says:

  Pushing an empty <src> allows you to delete the <dst> ref from
  the remote repository.

In the examples section, it says:

  git push origin :experimental
         Find a ref that matches experimental in the origin repository
         (e.g. refs/heads/experimental), and delete it.


Dave.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help