From 19506507d9c79e0ec0d4b7358ab354f78ca0b204 Mon Sep 17 00:00:00 2001 From: Christian Lang Date: Tue, 19 Mar 2024 15:34:05 +0100 Subject: [PATCH] + add alias: fix-author --- defaults/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/defaults/main.yml b/defaults/main.yml index d8a7dcc..4bb3e11 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -23,6 +23,7 @@ git_alias_list: - {alias: 'co', cmd: 'checkout'} - {alias: 'cob', cmd: 'checkout -b'} - {alias: 'fix', cmd: "!fix() { git commit --fixup $1 && GIT_SEQUENCE_EDITOR=: git rebase --interactive --autosquash --autostash $1~1; }; fix"} + - {alias: 'fix-author', cmd: "!fix() { git rebase --rebase-merges $1 --exec 'git commit --amend --no-edit --reset-author'; }; fix"} - {alias: 'g', cmd: "!git gui"} - {alias: 'k', cmd: "!gitk --all"} - {alias: 'l', cmd: 'log --oneline'}