From 8c90e792aad392c859c0d376858575260030bb81 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Sep 2013 19:50:20 +0200 Subject: explination of remote tag removal syntax MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- using-git.texinfo | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'using-git.texinfo') diff --git a/using-git.texinfo b/using-git.texinfo index 8fe56aa..b706a70 100644 --- a/using-git.texinfo +++ b/using-git.texinfo @@ -1166,6 +1166,18 @@ git tag -d 'RELEASE_VERSION' git push origin :refs/tags/'RELEASE_VERSION' @end example +@file{refs/tags/RELEASE_VERSION} is a +file in the @file{.git} directory. +Using a @code{:} tells git that you +want to push the local file before the +@code{:} to the remote file after the +@code{:}. If the local file is not +specified, in order words, the argument +begins with @code{:}, you are telling +git to remove the remote file. +This only work with referense, that is, +files inside @file{.git/refs}. + @node Cherry picking -- cgit v1.2.3-70-g09d2