Git pairing with multiple co authors in simple way. Each co-author will be added to the commit message, so that they are also credited in the github contributions view!
When a pair or multiple developers work on git projects, there is a convention that allows us to document our co-authors in the commit message. However, adding the co-authorship information on every single commit is painful.
Do a git commit in the same way it is usually done, with the pair members username, to make them get credit for the commit (if more than one member works on the same code, separate the username by comma). The author’s name(who writes the code - Driver) on the commit will be added automatically.
Each co-author will be added to the commit message, so that they are also credited in the github contributions view!
$ npm i -g git-co-commit
It will install the git-co-commit package and add all the dependencies to the root level of your computer. To use the installed git co commit package do the following
$ mkdir demo
$ cd demo
$ git init
$ touch index.html
$ git add index.html
$ commit
To know more visit the documentation site of git co commit
Git co commit is open source npm package licensed as MIT.