Skip to content

Instantly share code, notes, and snippets.

@RafhaanShah
Created January 7, 2021 20:52
Show Gist options
  • Save RafhaanShah/fd8ad3ef65ce2a2bbd27cbc3f3321783 to your computer and use it in GitHub Desktop.
Save RafhaanShah/fd8ad3ef65ce2a2bbd27cbc3f3321783 to your computer and use it in GitHub Desktop.
Shell function for git duet commits
git-duet() {
if [ "$#" -lt 3 ]; then
echo "Usage: git-duet \"Commit message\" \"Second Committer\" \"second.committer@mail.com\""
else
git commit --message "$1" --author "$2 <$3>" --signoff
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment