We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f485b5f commit 6d55946Copy full SHA for 6d55946
git/README.md
@@ -36,6 +36,10 @@ Extracts the authors of all commits in a repo and the number of commits they mad
36
37
Find large files in a git repo
38
39
+## force-push-tag.sh
40
+
41
+Useful for force pushing / updating a tag so that you can update the tag atomically
42
43
## get-full-sha-from-short-sha.sh
44
45
Get the full SHA from a short SHA
git/force-push-tag.sh
@@ -0,0 +1,6 @@
1
+# useful for force pushing / updating a tag so that you can update the tag atomically
2
3
+git tag test # Create tag
4
+git push origin test # Push to remote
5
+git tag test HEAD~2 -f # Forcibly create tag pointing to old version
6
+git push origin test -f # Force overwriting the remote tag
0 commit comments