File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -331,9 +331,20 @@ git tag -d <tag-name>
331
331
332
332
## Delete remote tag
333
333
``` sh
334
+ git push origin --delete refs/tags/< tag-name>
335
+ ```
336
+
337
+
338
+ __ Alternatives:__
339
+ ``` sh
334
340
git push origin :refs/tags/< tag-name>
335
341
```
336
342
343
+
344
+ ``` sh
345
+ git push origin --delete < tag-name>
346
+ ```
347
+
337
348
## Undo local changes with the content in index(staging)
338
349
``` sh
339
350
git checkout -- < file_name>
Original file line number Diff line number Diff line change 73
73
"tip" : " git tag -d <tag-name>"
74
74
}, {
75
75
"title" : " Delete remote tag" ,
76
- "tip" : " git push origin :refs/tags/<tag-name>"
76
+ "tip" : " git push origin --delete refs/tags/<tag-name>" ,
77
+ "alternatives" : [" git push origin :refs/tags/<tag-name>" , " git push origin --delete <tag-name>" ]
77
78
}, {
78
79
"title" : " Undo local changes with the content in index(staging)" ,
79
80
"tip" : " git checkout -- <file_name>"
You can’t perform that action at this time.
0 commit comments