GithubHelp home page GithubHelp logo

gpair's Introduction

CLI Tool for co-authoring commits.

Installation

  1. git clone [email protected]:dplain90/gpair.git
  2. Add the path for /gpair/bin to your $PATH variable in your bash_profile OR .zshrc
  3. source ~/.bash_profile OR source ~/.zshrc
  4. gpair

Optional Steps

  • To add an alias to gpair for git:
    git config --global alias.pair '!gpair'

    Then you can run gpair through the command:
    git pair

Setup

  • In the root directory of your repository add a file called .pairs. This file stores pair data for authors participating in that repo. Add all the co-authors for your repo to this file.

    EXAMPLE:

    The format for each author is: [<Initials>]: <Name>; <Github Email>

pairs:
  [dp]: Danny Plain; [email protected]
  [js]: Jane Smith; [email protected]
  • Add .current-pair to your .gitignore.

Usage

At the beginning of a pairing session, run gpair set <pair_initials>

When you are ready to commit just run gpair commit "commit message" [git options]. Gpair will append the co-authoring lines to your commit message, then create the commit.

NOTE: You can pass any available git commit options after the commit message. EX: --no-verify

When you are done pairing, run gpair clear to remove your current pair.

Available Commands

Gpair supports several commands, each accessible through the gpair command. For help on individual commands, add --help or -h following the command name. The commands are:

gpair set

Sets a current pair

gpair commit

Creates a commit, appending your pair's information as the co-author.

gpair clear

Clears your current pair.

gpair ls

Lists all available pairs in the repository

gpair pair

Displays your current pair's information

gpair add

Adds a new author to the repository's pair list

gpair remove

Removes an author from the repository's pair list

gpair's People

Contributors

dplain90 avatar

Watchers

 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.