Configures your git author info with one or more people.
Clone this repository and put it in your
$PATH, or just download the
pre-built binary for OS X and put that somewhere in your
# Print the current git author. $ pair Michael Bluth <firstname.lastname@example.org> # Set the current git author from users in the pairs file. $ pair mb lb Lindsay Bluth and Michael Bluth <email@example.com> # Set the current git author according to your user, perhaps useful in .bashrc. $ pair $USER # Create a branch to work on a feature. $ pair -b ONCALL-843 Switched to a new branch 'alice+jsmith/ONCALL-843'
pair uses environment variables to configure its behavior.
PAIR_FILE to a YAML file containing a map of usernames to full names, e.g.
--- lb: Lindsay Bluth mb: Michael Bluth
The default location for this file is
PAIR_GIT_CONFIG to the path to the git configuration file to use for
setting and getting author info. The default location for this file is
PAIR_EMAIL to an email address to use as the base for all derived emails.
$ export PAIR_EMAILfirstname.lastname@example.org $ pair mb Michael Bluth <email@example.com> $ pair lb mb Lindsay Bluth and Michael Bluth <firstname.lastname@example.org>
The default value for this template is determined by your network settings for en0.
First, ensure you have all the required dependencies:
$ go get gopkg.in/yaml.v1
go build and
go test as normal to build the
pair binary and run