Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 788 Bytes

README.md

File metadata and controls

27 lines (24 loc) · 788 Bytes

git-pair

If you pair program and use git, you may find this useful.

why

When pairing and switching often, editing ~/.gitconfig is tedious. Not to say about managing ssh keys (to identify the pusher). This little script handles those two issues for you.

how

Install

$ curl -sL https://raw.githubusercontent.com/Ciebiada/git-pair/master/install | bash

Add users

$ git pair add Michal "Michal Ciebiada" [email protected] ~/Downloads/id_rsa
$ git pair add Tyler "Tyler Durden" [email protected] ~/Downloads/id_rsa2

Pair

$ git pair set michal tyler

Not pairing anymore? Easy

$ git pair set michal

Profit!

Git will be using public key of the first person. However, keys are optional. If you don't provide them, git-pair won't mess with them.