From 25bbaa93e93c0c71c10e52270a8f74a65495567c Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Tue, 17 Oct 2023 04:34:47 -0700 Subject: [PATCH 1/2] Update "Delete remote tag" to match delete remote branch #218 --- README.md | 11 +++++++++++ tips.json | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 757ef31..bb03e4e 100644 --- a/README.md +++ b/README.md @@ -331,9 +331,20 @@ git tag -d ## Delete remote tag ```sh +git push origin --delete refs/tags/ +``` + + +__Alternatives:__ +```sh git push origin :refs/tags/ ``` + +```sh +git push origin --delete +``` + ## Undo local changes with the content in index(staging) ```sh git checkout -- diff --git a/tips.json b/tips.json index d53d1ae..12a53f8 100644 --- a/tips.json +++ b/tips.json @@ -73,7 +73,8 @@ "tip": "git tag -d " }, { "title": "Delete remote tag", - "tip": "git push origin :refs/tags/" + "tip": "git push origin --delete refs/tags/", + "alternatives": ["git push origin :refs/tags/", "git push origin --delete "] }, { "title": "Undo local changes with the content in index(staging)", "tip": "git checkout -- " From 0e780f44486440cd3e2b2cfcf5c71dbaf098d372 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Tue, 31 Oct 2023 02:47:02 -0700 Subject: [PATCH 2/2] Remove redundancy in delete remote tag --- README.md | 7 +------ tips.json | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bb03e4e..1cc1e73 100644 --- a/README.md +++ b/README.md @@ -331,7 +331,7 @@ git tag -d ## Delete remote tag ```sh -git push origin --delete refs/tags/ +git push origin --delete ``` @@ -340,11 +340,6 @@ __Alternatives:__ git push origin :refs/tags/ ``` - -```sh -git push origin --delete -``` - ## Undo local changes with the content in index(staging) ```sh git checkout -- diff --git a/tips.json b/tips.json index 12a53f8..819138a 100644 --- a/tips.json +++ b/tips.json @@ -73,8 +73,8 @@ "tip": "git tag -d " }, { "title": "Delete remote tag", - "tip": "git push origin --delete refs/tags/", - "alternatives": ["git push origin :refs/tags/", "git push origin --delete "] + "tip": "git push origin --delete ", + "alternatives": ["git push origin :refs/tags/"] }, { "title": "Undo local changes with the content in index(staging)", "tip": "git checkout -- "