Skip to content

quiqueporta/coauthors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coauthors

Add coauthors to your last git commit message.

Install

To install coauthors, just run:

$ sudo python3 -m pip install coauthors # for system wide pip --break-system-packages

Configure

First create a config file with your coauthors.

Example ~/.coauthors.json:

{
  "Faemino":
  {
    "name": "Juan Carlos Arroyo",
    "email": "[email protected]"
  },
  "Cansado":
  {
    "name": "Angel Javier Pozuelo",
    "email": "[email protected]"
  }
}

Then add the following line to your sources file (.bashrc, .zshrc, ...):

export PATH="$HOME/.local/bin:$PATH" # for system wide pip
export COAUTHORS_FILE="/home/<user>/.coauthors.json"

Usage

You can coauthor your commit with one friend

$ coauthors Faemino

or with many

$ coauthors Faemino Cansado

You can list your available coauthors

$ coauthors --list

About

Add coauthors to your last git commit message

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages