Github has added support for pair programming via commit messages.
This repository makes it muuuch simpler to use this new functionality. Here's how you use it after installation:
- Type
pair_with AnilRedshift
in the terminal (replace AnilRedshift with the person you're pairing with) - Work on your codebase with your pair (me in this case!)
- Commit your code as normal.
- Note that
Co-authored-by Anil Kulkarni <anilredshift@users.noreply.github.com>
Has been added to your git commit message! - Rejoice!
- Clone this repository
git clone https://github.com/AnilRedshift/github-pair-commit.git
- Open your terminal and cd into
github-pair-commit
- run
./setup.sh
- Open a new terminal (or source your environment)
- Go to all existing git repositories and type
git init
The commit script works by setting $GIT_PAIR_NAME
and GIT_PAIR_EMAIL
as environment variables.
You can automatically set these by typing pair_with {github user name}
When you're done pairing, simply type work_solo