Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,12 @@ git tag -d <tag-name>

## Delete remote tag
```sh
git push origin --delete <tag-name>
```


__Alternatives:__
```sh
git push origin :refs/tags/<tag-name>
```

Expand Down
3 changes: 2 additions & 1 deletion tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@
"tip": "git tag -d <tag-name>"
}, {
"title": "Delete remote tag",
"tip": "git push origin :refs/tags/<tag-name>"
"tip": "git push origin --delete <tag-name>",
"alternatives": ["git push origin :refs/tags/<tag-name>"]
}, {
"title": "Undo local changes with the content in index(staging)",
"tip": "git checkout -- <file_name>"
Expand Down