From: martin f. krafft Date: Mon, 8 Jul 2013 12:32:11 +0000 (+0200) Subject: add squash and fixup aliases X-Git-Url: https://git.madduck.net/etc/git.git/commitdiff_plain/51a9858e71143bce9a9c50aea93d7f8741e1d133?ds=inline;hp=0da936e790e3d09b665c1e1b7de9fe905b7762ee add squash and fixup aliases --- diff --git a/.gitconfig b/.gitconfig index 0682c02..a2e8b44 100644 --- a/.gitconfig +++ b/.gitconfig @@ -17,6 +17,8 @@ files = ls-files -v --deleted --modified --others --directory --no-empty-directory --exclude-standard sum = log --pretty=format:\"%h %Cblue%ci%Creset %Cgreen%cn%Creset %s\" unstage = reset HEAD + 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" [clean] requireForce = true [branch]