Coder Social home page Coder Social logo

git-pair's Introduction

git-pair

A git porcelain for changing user.name and user.email so you can commit as more than one author.

Usage

Install the gem:

gem install git-pair

And here's how to use it! (Note: this reflects the current development version. Run git pair with no arguments to see the instructions for your version.)

$ git pair

Configuration:
  git pair [options]
    -a, --add NAME                   Add an author. Format: "Author Name <[email protected]>"
    -r, --remove NAME                Remove an author. Use the full name.

Switching authors:
  git pair AA [BB]                   Where AA and BB are any abbreviation of an
                                     author's name. You can specify one or more authors.

Once you've added authors, running git pair with no options will also print out their names, the current pair, and some other information.

Known issues

  • I just shoved everything into a gem. Refactor into separate files.
  • Test coverage is low -- I'm working on a cucumber suite.

Feature hit list

  • It'd be better if you could specify an email address for each author instead of just automatically using the authors' initials. Especially if you have two authors with the same initials. And also because when there's just one author, it should use that person's email instead of an interpolation like [email protected]. Started! Now accepts author names w/ emails, but doesn't yet prompt for/generate an email based on the pairs' addresses.
  • Needs git pair --reset to restore the original user.name and user.email. For now, just git config --edit and remove the [user] section to go back to your global config.

License

Copyright (c) 2009 Chris Kampmeier. See LICENSE for details.

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.