Git Profile switcher
Git Profile allows to add and switch between multiple user profiles in your git repositories.
If you are OSX user, you can use Homebrew:
brew install dotzero/tap/git-profile
Download the binary from the releases page and place it in
Building from source
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.7 or greater and that your
GOPATH env variable is set (I recommand setting it to
~/go if you don't have one).
go get -u github.com/dotzero/git-profile
The binary will then be installed to
$GOPATH/bin (or your
Add an entry to a profile
git profile add home user.name dotzero git profile add home user.email "firstname.lastname@example.org" git profile add home user.signingkey AAAAAAAA
List of available profiles
git profile list
Apply the profile to current git repository
git profile use home # Under the hood it runs following commands: # git git config --local user.name dotzero # git git config --local user.email "email@example.com" # git git config --local user.signingkey AAAAAAAA