Git Profile allows to add and switch between multiple user profiles in your git repositories.
This tool is uses git config includes, so if you change profile you'll change all configs that includes this profile.
Also profiles could contain not only user.name, user.email, user.signingkey, but any git config key.
If you are OSX user, you can use Homebrew:
brew install dm3ch/tap/git-profile-managerDownload the binary from the releases page and place it in $PATH directory.
If your operating system does not have a binary release, but does run Go, you can build from source.
Make sure that you have Go version 1.12 or greater and that your GOPATH env variable is set (I recommend setting it to ~/go if you don't have one).
go get -u github.com/dm3ch/git-profile-managerThe binary will then be installed to $GOPATH/bin (or your $GOBIN).
Add an entry to a profile
$git profile-manager add test-profile 1|0 ↵ 03:30:56
Name: Test Name
Email: test@email.com
Signing Key:
Profile test-profile added successfullyList of available profiles:
git profile-manager listApply the profile to current git repository:
git profile-manager use home