Skip to content

👫 Pair Programming and split the commits contributiuons

Notifications You must be signed in to change notification settings

vnegrisolo/pair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pair

Pair Programming and split the commits contributiuons.

For every commit Author and Commiter will be swapped, so 50% for each developer.

screen shot 2016-04-18 at 9 07 13 pm

Install

mkdir ~/.functions
git clone git@github.com:vnegrisolo/pair.git ~/.functions/pair
echo "source ~/.functions/pair/pair.sh" >> ~/.bashrc

Configure

pair accepts github users and fetch your name and email from:

  • local cache
  • github api
pair bill karen

If you do not have a name or public email for these users pair will show a command line so you can configure it manually, something like:

pair user_with_no_email
ERROR => You need to set Name and Email for user_with_no_email on Github, or run manually:
  git config --global pair.author.email 'your@email.com'
  git config --global pair.author.name 'Your Name'
  git config --global pair.your-user.email 'your@email.com'
  git config --global pair.your-user.name 'Your Name'

Commit

pair calls git in order to commit with all the params you wish and swaps author and committer for every commit.

pair commit -m 'Something changed'

Status

pair

prints something like:

screen shot 2016-04-30 at 9 06 03 pm

Ignore github

If you don't want to use github users you can create your own config file by:

Add to you ~/.gitconfig:

[include]
  path = ~/.gitconfig.pair

Create a file ~/.gitconfig.pair as:

[pair "your-user"]
  email = your@email.com
  name = Your Name
[pair "another-user"]
  email = another@email.com
  name = Another Name

Reset

pair reset

Development

I chose rspec as my test framework because I love it.

So I created some abstractions to deal with shell and make bash developer live easier.

Github Notes

Github defines some rules to contributions.

TL;TR:

You need to fit in at least one of the following:

  • You are a collaborator on the repository or are a member of the organization that owns the repository.
  • You have forked the repository.
  • You have opened a pull request or issue in the repository.
  • You have starred the repository.

About

👫 Pair Programming and split the commits contributiuons

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published