Skip to content

Assign coauthors to commits—straight from the command line! 🎉

Notifications You must be signed in to change notification settings

zkhvan/git-coauthor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

git-coauthor

Assign coauthors to commits—straight from the command line! 🎉

For more info on coauthors, check out the github docs for coauthoring.

Installation 💾

$ git clone https://github.com/zkhvan/git-coauthor.git
$ cd git-coauthor
$ make install

Usage ⭐️

$ git coauthor <commit> <coauthors>...

coauthor-demo

Example Usage

# 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>"

Usage with global aliases

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

About

Assign coauthors to commits—straight from the command line! 🎉

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published