Skip to content

Commit 25bbaa9

Browse files
committed
Update "Delete remote tag" to match delete remote branch #218
1 parent a67bf7c commit 25bbaa9

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

+11
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,20 @@ git tag -d <tag-name>
331331

332332
## Delete remote tag
333333
```sh
334+
git push origin --delete refs/tags/<tag-name>
335+
```
336+
337+
338+
__Alternatives:__
339+
```sh
334340
git push origin :refs/tags/<tag-name>
335341
```
336342

343+
344+
```sh
345+
git push origin --delete <tag-name>
346+
```
347+
337348
## Undo local changes with the content in index(staging)
338349
```sh
339350
git checkout -- <file_name>

tips.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@
7373
"tip": "git tag -d <tag-name>"
7474
}, {
7575
"title": "Delete remote tag",
76-
"tip": "git push origin :refs/tags/<tag-name>"
76+
"tip": "git push origin --delete refs/tags/<tag-name>",
77+
"alternatives": ["git push origin :refs/tags/<tag-name>", "git push origin --delete <tag-name>"]
7778
}, {
7879
"title": "Undo local changes with the content in index(staging)",
7980
"tip": "git checkout -- <file_name>"

0 commit comments

Comments
 (0)