Skip to content

Commit

Permalink
Update "Delete remote tag" to match delete remote branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hyperupcall committed Oct 17, 2023
1 parent a67bf7c commit de14fb2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
12 changes: 12 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 Expand Up @@ -999,6 +1010,7 @@ __Alternatives:__
git branch <branch-name> && git checkout <branch-name>
```


```sh
git switch -c <branch-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 de14fb2

Please sign in to comment.