aliases: Add git amend alias to amend commits automatically

This commit is contained in:
Robin-Charles GUIHENEUF 2020-09-12 23:50:19 +02:00
parent 6280d71f36
commit 9003b82f1b

View File

@ -128,6 +128,9 @@ function ga {
git rebase --interactive --autosquash HEAD~$1 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 <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"
function grbr { function grbr {
git rebase --interactive --autosquash --root git rebase --interactive --autosquash --root
} }