Skip to content

Commit ab6e8fb

Browse files
committed
git: add coauthor alias
1 parent 4d779b8 commit ab6e8fb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.config/git/config.aliases

+1
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
# Commit
4545
amend = commit -q --amend --no-edit
46+
coauthor = !git commit --amend --message=\"$(git log -1 --format=%B)\" --message=\"Co-authored-by: $(git config --get user.name) <$(git config --get user.email)>\"
4647
commit-each = "!f() { for fn in $(git ls-files --modified); do git commit -nm \"$(basename \"${fn%.*}\"): $1\" \"$fn\"; done; }; f"
4748
fixup = !git amend && git push -q --force-with-lease
4849
uncommit = reset --soft HEAD~1

0 commit comments

Comments
 (0)