
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Allows you to commit with two users by making one the committer and the other the author. Also lets you switch users easily.
Credit to @roylines for the original idea in his gits repo.
npm install git-pair -g
This installs:
You can also install git-pair locally:
npm install git-pair
This will install the git alias to the local git config, to use gitp you need to run:
./node_modules/.bin/gitp
Configure the users for your pair with git users
, then use gitp
instead of git
:
git users jane@example.com bob@example.com
gitp commit -m "Did the code"
This alias allows you to get or set git users. You can find out which users are currently configured using:
git users
You can set users using their email addresses:
git users jane@example.com bob@example.com
This looks up git usernames from GitHub, alternatively you can specify usernames explicitly:
git users jane:jane@example.com bob:bob@example.com
The users are stored as values in git config
. The first user entered is always the normal git user.
gitp
is a wrapper executable for git
which injects git committer and author environment variables to the command to allow two people to contribute to a commit. It alternates the committer and author in each commit.
Simply use it as you would use git e.g. gitp commit -m "Fixed the thing"
You can also alias this over git
to use this in place of it. I prefer this because it prevents people from accidentally committing with a single user. Simply add alias git='gitp'
to ~/.bashrc
(or ~/.bash_profile
on Mac).
FAQs
Git pair programming tools
The npm package git-pair receives a total of 7 weekly downloads. As such, git-pair popularity was classified as not popular.
We found that git-pair demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.