1
0
mirror of https://github.com/namibia/tips.git synced 2024-12-22 18:18:58 +00:00

Merge pull request #199 from itaikla/add-create-tag-tip

Add a tip for create local tag
This commit is contained in:
hemanth.hm 2021-05-04 15:11:47 -07:00 committed by GitHub
commit 1b89495cfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)
@ -318,6 +319,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>"