gitconfig: added new command retag

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
Marcin Woźniak 2025-02-13 23:50:24 +01:00
parent cb54a2309a
commit 475e27f56e
Signed by: y0rune
GPG Key ID: F204C385F57EB348

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/"