From 9003b82f1b14284905b3715db90bf2a034ae011c Mon Sep 17 00:00:00 2001 From: Robin-Charles GUIHENEUF Date: Sat, 12 Sep 2020 23:50:19 +0200 Subject: [PATCH] aliases: Add git amend alias to amend commits automatically --- .bash_aliases | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index c1c58a6..b26f9c8 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -128,6 +128,9 @@ function ga { git rebase --interactive --autosquash HEAD~$1 } +# Git amend +alias amend_pro="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles GUIHENEUF \"' $1" +alias amend_perso="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles Guihéneuf \"' $1" function grbr { git rebase --interactive --autosquash --root }