Created
January 7, 2021 20:52
-
-
Save RafhaanShah/fd8ad3ef65ce2a2bbd27cbc3f3321783 to your computer and use it in GitHub Desktop.
Shell function for git duet commits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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