This is neat! I am myself using the fancy --trailer flag that git commit also provides to do the same:
--trailer
git commit
git commit -m "The commit message" --trailer 'Co-authored-by: name <person@example.com>'
I have even saved this to a git alias when I'm pair-programming more often so that I get the trailer appended automatically. For example:
git config --global alias.commit-jane "commit --trailer 'Co-authored-by: Jane Doe <jane.doe@example.com>'"
Now git commit-jane allows me to commit with Jane in Co-authored-by :)
git commit-jane
Ah this is so cool! I'm totally saving this in my gist files. thanks for sharing this!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is neat! I am myself using the fancy
--trailerflag thatgit commitalso provides to do the same:I have even saved this to a git alias when I'm pair-programming more often so that I get the trailer appended automatically. For example:
Now
git commit-janeallows me to commit with Jane in Co-authored-by :)Ah this is so cool! I'm totally saving this in my gist files. thanks for sharing this!