Git Profile allows to add and switch between multiple user profiles in your git repositories
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmd
config
git
.gitignore
.goreleaser.yml
.travis.yml
Gopkg.lock
Gopkg.toml
LICENSE
Makefile
README.md
main.go

README.md

Git Profile switcher

Build Status Go Report Card MIT License

Git Profile allows to add and switch between multiple user profiles in your git repositories.

Installation

If you are OSX user, you can use Homebrew:

brew install dotzero/tap/git-profile

Prebuilt binaries

Download the binary from the releases page and place it in $PATH directory.

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 $GOBIN).

Usage

Add an entry to a profile

git profile add home user.name dotzero
git profile add home user.email "mail@dotzero.ru"
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 "mail@dotzero.ru"
# git git config --local user.signingkey AAAAAAAA

License

http://www.opensource.org/licenses/mit-license.php