Add create local tag tip

This commit is contained in:
Itai Klapholtz 2021-05-04 18:34:18 +03:00
parent 1a97486c82
commit dc7a62b67d
2 changed files with 9 additions and 0 deletions

View File

@ -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)
@ -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>

View File

@ -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>"