aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--dot_config/git/config1
1 files changed, 1 insertions, 0 deletions
diff --git a/dot_config/git/config b/dot_config/git/config
index 9eae2c0..68f233e 100644
--- a/dot_config/git/config
+++ b/dot_config/git/config
@@ -86,6 +86,7 @@
[absorb]
autoStageIfNothingStaged = true
[alias]
+ resign = "!git -c core.hooksPath=/dev/null rebase @{u} --exec 'git log -1 --format=%B | sed \"/^Co-authored-by:/Id\" | git -c core.hooksPath=/dev/null commit --amend --reset-author --no-verify --cleanup=strip -F -'"
ghost-rebase = "!sh -c 'b=$0; u=${1:-origin/master}; wt=$(mktemp -d -t rebwt.XXXXXX); git worktree add -f "$wt" "$b"; git -C "$wt" rebase "$u" || echo "Rebase incomplete"; git worktree remove --force "$wt"'"
a = add
ab=absorb --and-rebase