GitPair

Elixir CI SourceLevel

Automatically adds Co-authored-by mark to commits when you're pairing.

Learn more

About

This is an experiment created by ElixirSC meetup group in our Hacking Sessions.

We're porting Golang project thechutrain/git-pair to Elixir using Erlang escript.

Install

mix escript.install github elixirsc/git-pair branch main

NOTE: If you use asdf, you need to "export" git-pair binary to asdf recognized binaries PATH. You can accomplish this by running:

asdf reshim elixir

If no version was specified it will get the current version.

Usage

Initialize

git pair init

List Pairs

git pair status

Adding Pair

git pair add github-username

Removing Pair

git pair rm github-username

Stop pairing with everyone

git pair stop

How it works

When you run git pair init, it will register pre-commit hook to wrap calls to our binary that will add Co-authored-by stored in .git/config.

Backlog

To check our backlog check out our Project Board.