diff --git a/README.md b/README.md index b3e88a3..d144cd9 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,8 @@ 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) +* [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) * [Revert: Undo a commit by creating a new commit](#revert-undo-a-commit-by-creating-a-new-commit) * [Reset: Discard commits, advised for private branch](#reset-discard-commits-advised-for-private-branch) @@ -225,6 +227,16 @@ __Alternatives:__ git push origin : ``` +## Delete local tag +```sh +git tag -d +``` + +## Delete remote tag +```sh +git push origin :refs/tags/ +``` + ## Undo local changes with the last content in head ```sh git checkout -- @@ -628,7 +640,7 @@ git config --global core.ignorecase false ## Add custom editors. ```sh - git config --global core.editor '$EDITOR' +git config --global core.editor '$EDITOR' ``` ## Auto correct typos. diff --git a/tips.json b/tips.json index f69c476..b564978 100644 --- a/tips.json +++ b/tips.json @@ -52,6 +52,12 @@ "title": "Delete remote branch", "tip": "git push origin --delete ", "alternatives": ["git push origin :"] +}, { + "title": "Delete local tag", + "tip": "git tag -d " +}, { + "title": "Delete remote tag", + "tip": "git push origin :refs/tags/" }, { "title": "Undo local changes with the last content in head", "tip": "git checkout -- "