mirror of
https://github.com/git-tips/tips
synced 2024-11-10 05:44:14 +00:00
Add create local tag tip
This commit is contained in:
parent
1a97486c82
commit
dc7a62b67d
2 changed files with 9 additions and 0 deletions
|
@ -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>
|
||||
|
|
|
@ -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>"
|
||||
|
|
Loading…
Reference in a new issue