gitconfig: added new command retag

This commit is contained in:
Marcin Woźniak 2025-02-13 23:50:24 +01:00
parent cb54a2309a
commit 798650bd87

View File

@ -31,6 +31,7 @@
exclude-file = !git update-index --assume-unchanged
c = commit --author='Marcin Woźniak <y0rune@aol.com> -s'
cw = commit --author='Marcin Woźniak <marcin.wozniak@wundermanthompson.com> -s'
retag = "!f() { if [ -z \"$1\" ]; then echo \"No version provided. Skipping git push.\"; else git tag --delete $1 2>/dev/null; git tag -a $1 -m \"Version $1\"; git push --tags -f; git push -f; fi; }; f"
[url "git@github.com:"]
insteadOf = "https://github.com/"