Giter Site home page Giter Site logo

pair's Introduction

pair

Configures your git author info with one or more people.

Install

Clone this repository and put it in your $PATH, or just download the pair pre-built binary for OS X and put that somewhere in your $PATH.

Usage

# Print the current git author.
$ pair
Michael Bluth <[email protected]>

# Set the current git author from users in the pairs file.
$ pair mb lb
Lindsay Bluth and Michael Bluth <[email protected]>

# 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'

Configuration

pair uses environment variables to configure its behavior.

PAIR_FILE

Set 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 ~/.pairs.

PAIR_GIT_CONFIG

Set 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 ~/.gitconfig_local.

PAIR_EMAIL

Set PAIR_EMAIL to an email address to use as the base for all derived emails. For example,

$ export [email protected]
$ pair mb
Michael Bluth <[email protected]>
$ pair lb mb
Lindsay Bluth and Michael Bluth <[email protected]>

The default value for this template is determined by your network settings for en0.

Development

First, ensure you have all the required dependencies:

$ go get gopkg.in/yaml.v1

Then, use go build and go test as normal to build the pair binary and run tests.

pair's People

Contributors

eventualbuddha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.