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 <[email protected]>"
# Assign multiple coauthors
$ git coauthor c84b7158 "Zhenya Khvan <[email protected]>" "Lilly Dinh-le <[email protected]>"If you're using zsh, you can set up global aliases for your favorite coauthors:
$ alias -g zhenya='"Zhenya Khvan <[email protected]>"'
$ alias -g lilly='"Lilly Dinh-le <[email protected]>"'Then coauthor them as:
# Assign a single coauthor
$ git coauthor c84b7158 zhenya
# Assign multiple coauthors
$ git coauthor c84b7158 zhenya lilly