From 475e27f56e592e662994d02f5420e06c0be049b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Thu, 13 Feb 2025 23:50:24 +0100 Subject: [PATCH] gitconfig: added new command `retag` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .gitconfig.local | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitconfig.local b/.gitconfig.local index 582a507..2adac8c 100644 --- a/.gitconfig.local +++ b/.gitconfig.local @@ -31,6 +31,7 @@ exclude-file = !git update-index --assume-unchanged c = commit --author='Marcin Woźniak -s' cw = commit --author='Marcin Woźniak -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/"