Skip to content

Commit

Permalink
Update "Delete remote tag" to match delete remote branch #218
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Oct 17, 2023
1 parent a67bf7c commit 25bbaa9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,20 @@ git tag -d <tag-name>

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


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


```sh
git push origin --delete <tag-name>
```

## Undo local changes with the content in index(staging)
```sh
git checkout -- <file_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 refs/tags/<tag-name>",
"alternatives": ["git push origin :refs/tags/<tag-name>", "git push origin --delete <tag-name>"]
}, {
"title": "Undo local changes with the content in index(staging)",
"tip": "git checkout -- <file_name>"
Expand Down

0 comments on commit 25bbaa9

Please sign in to comment.