From 1e041c9ab77b0e14a54ffc970c59feb29be35a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin-Charles=20Guih=C3=A9neuf?= Date: Sat, 12 Sep 2020 23:50:19 +0200 Subject: [PATCH] aliases: Add git amend alias to amend commits automatically --- .bash_aliases | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.bash_aliases b/.bash_aliases index ce52f28..74752c7 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -128,6 +128,10 @@ 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" + # Repositories alias bc='cd $HOME/Netatmo/embedded/firmware-bitcloud' alias fw='cd $HOME/Netatmo/embedded/firmware'