Add git amend alias to amend commits automatically

This commit is contained in:
Robin-Charles GUIHENEUF 2020-08-28 16:47:05 +02:00 committed by Robin-Charles Guihéneuf
parent e4759fe815
commit 3672521d8c

View File

@ -128,6 +128,10 @@ function grbr {
git rebase --interactive --autosquash --root git rebase --interactive --autosquash --root
} }
# Git amend
alias amend_pro="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles GUIHENEUF <rguiheneuf@netatmo.com>\"' $1"
alias amend_perso="GIT_EDITOR=true git rebase --preserve-merges --exec 'git commit --amend --author=\"Robin-Charles Guihéneuf <robin-charles@hotmail.fr>\"' $1"
# Repositories # Repositories
alias bc='cd $HOME/Netatmo/embedded/firmware-bitcloud' alias bc='cd $HOME/Netatmo/embedded/firmware-bitcloud'
alias fw='cd $HOME/Netatmo/embedded/firmware' alias fw='cd $HOME/Netatmo/embedded/firmware'