Skip to content

Commit de14fb2

Browse files
committed
Update "Delete remote tag" to match delete remote branch
1 parent a67bf7c commit de14fb2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

README.md

+12
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>
@@ -999,6 +1010,7 @@ __Alternatives:__
9991010
git branch <branch-name> && git checkout <branch-name>
10001011
```
10011012

1013+
10021014
```sh
10031015
git switch -c <branch-name>
10041016
```

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)