From: martin f. krafft Date: Mon, 19 May 2025 07:32:43 +0000 (+0200) Subject: amend and reword aliases X-Git-Url: https://git.madduck.net/etc/git.git/commitdiff_plain/c5d561ffe9525775d43ed24d949c9feb26af5bef amend and reword aliases --- diff --git a/.gitconfig b/.gitconfig index a3d7868..3ca6040 100644 --- a/.gitconfig +++ b/.gitconfig @@ -17,7 +17,9 @@ unstage = restore --staged sq = "!merge_squash_commit() { git merge --squash \"$1\" && git commit -m \"$1 squash\"; }; merge_squash_commit" fixup = "!fixup_commit() { local c=\"$1\"; shift; git commit --fixup=\"$c\" \"$@\"; }; fixup_commit" - lst = "!cd $GIT_PREFIX && git status | grep -E --color=never -e '^([^[:space:]]|$|[[:space:]]+[^.( ])'" + lst = "!cd $GIT_PREFIX && git status | grep -E --color=never -e '^([^[:space:]]|$|[[:space:]]+[^.( ])'" + amend = "commit --amend --no-edit" + reword = "commit --amend --only" [clean] requireForce = true [branch]