Skip to content
Merged
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 @@ -32,6 +32,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [Track upstream branch](#track-upstream-branch)
* [Delete local branch](#delete-local-branch)
* [Delete remote branch](#delete-remote-branch)
* [Create local tag](#create-local-tag)
* [Delete local tag](#delete-local-tag)
* [Delete remote tag](#delete-remote-tag)
* [Undo local changes with the last content in head](#undo-local-changes-with-the-last-content-in-head)
Expand Down Expand Up @@ -316,6 +317,11 @@ git push origin :<remote_branchname>
git branch -dr <remote/branch>
```

## Create local tag
```sh
git tag <tag-name>
```

## Delete local tag
```sh
git tag -d <tag-name>
Expand Down
3 changes: 3 additions & 0 deletions tips.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@
"title": "Delete remote branch",
"tip": "git push origin --delete <remote_branchname>",
"alternatives": ["git push origin :<remote_branchname>", "git branch -dr <remote/branch>"]
}, {
"title": "Create local tag",
"tip": "git tag <tag-name>"
}, {
"title": "Delete local tag",
"tip": "git tag -d <tag-name>"
Expand Down