Assign coauthors to commits—straight from the command line! 🎉
For more info on coauthors, check out the github docs for coauthoring.
$ git clone https://github.com/zkhvan/git-coauthor.git
$ cd git-coauthor
$ make install
$ git coauthor <commit> <coauthors>...
# Assign a single coauthor
$ git coauthor c84b7158 "Zhenya Khvan <zhenya.khvan@gmail.com>"
# Assign multiple coauthors
$ git coauthor c84b7158 "Zhenya Khvan <zhenya.khvan@gmail.com>" "Lilly Dinh-le <lilly.dinhle@gmail.com>"
If you're using zsh, you can set up global aliases for your favorite coauthors:
$ alias -g zhenya='"Zhenya Khvan <zhenya.khvan@gmail.com>"'
$ alias -g lilly='"Lilly Dinh-le <lilly.dinhle@gmail.com>"'
Then coauthor them as:
# Assign a single coauthor
$ git coauthor c84b7158 zhenya
# Assign multiple coauthors
$ git coauthor c84b7158 zhenya lilly