mirror of
https://github.com/namibia/tips.git
synced 2024-12-22 10:08: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:
commit
1b89495cfb
@ -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>
|
||||
|
@ -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 New Issue
Block a user