Skip to content
A Cli that adds Co-authored-by lines when you're pairing
Go
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE
.notes
actions
arrays
autocomplete
gitconfig
.gitignore
gitpair.go
readme.md

readme.md

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
You can’t perform that action at this time.