Skip to content

Commit

Permalink
git: add coauthor alias
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Jan 6, 2024
1 parent 4d779b8 commit ab6e8fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .config/git/config.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@

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

0 comments on commit ab6e8fb

Please sign in to comment.