Skip to content

A Cli that adds Co-authored-by lines when you're pairing

Notifications You must be signed in to change notification settings

thechutrain/git-pair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-pair 🍐🍐

Makes it easy to add co-authors to your project

Demo

demo

Installing

$ go install git-pair.go

Make sure that your go/bin directory is in your path. You can check this by echo $PATH. If the go directory is not there then go into your zsh or bash file and add that.

Add the following to your .zshrc file:

PROG=pair source $PATH/to/autocomplete/bash_autocomplete

Usage

To initiate a pairing session just type:

pair add GITHUB_USERNAME GITHUB_EMAIL

To stop pairing with everyone:

pair stop

To see if you are currently pairing with anyone:

pair status

Description

This cli uses the prepare-commit-msg git hook to append co-authors to your commit messages for you.

Example:

wip - git commit message, pairing is fun!

# Added by 🍐
Co-authored-by: pairpal <pair-pal@email.com>

# Please enter the commit message for your changes. Lines starting
# with '#' will be ignored, and an empty message aborts the commit.
#
# Date:      Tue Jun 4 17:22:45 2019 -0400
#
# On branch master
# Your branch is up-to-date with 'origin/master'.
#¬
# Changes to be committed:
#      new file:   .gitignore¬
#      modified:   actions/remove.go¬
#      modified:   notes.md¬
#      modified:   readme.md
#
# Changes not staged for commit:
#     modified:   readme.md

About

A Cli that adds Co-authored-by lines when you're pairing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages