1GIT-RENAME-TAG(1) Git Extras GIT-RENAME-TAG(1)
2
3
4
6 git-rename-tag - Rename a tag
7
9 git-rename-tag <old-tag-name> <new-tag-name>
10
12 Rename a tag (locally and remotely)
13
15 <old-tag-name>
16
17 The name of the tag you want to rename.
18
19 <new-tag-name>
20
21 The new name of the tag.
22
24 $ git tag test
25 $ git push --tags
26 Total 0 (delta 0), reused 0 (delta 0)
27 To git@myserver.com:myuser/myrepository.git
28 * [new tag] test -> test
29 $ git tag
30 test
31 $ git rename-tag test test2
32 Deleted tag ´test´ (was 1111111)
33 Total 0 (delta 0), reused 0 (delta 0)
34 To git@myserver.com:myuser/myrepository.git
35 * [new tag] test2 -> test2
36 remote: warning: Deleting a non-existent ref.
37 To git@myserver.com:myuser/myrepository.git
38 - [deleted] refs/tag/test
39 $ git tag
40 test2
41
43 Written by Jesús Espino <jespinog@gmail.com>
44
46 <https://github.com/tj/git-extras/issues>
47
49 <https://github.com/tj/git-extras>
50
51
52
53 October 2017 GIT-RENAME-TAG(1)