Skip to content


Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

Git Profile switcher

build Go Report Card MIT License

Git Profile allows you to switch between multiple user profiles in git repositories


If you are MacOS user, you can use Homebrew:

brew install dotzero/tap/git-profile

Prebuilt binaries

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

Building from source

If your operating system does not have a binary release, but does run Go, you can build it from the source.

go get -u

The binary will then be installed to $GOPATH/bin (or your $GOBIN).


Adds an entry to a profile or updates an existing profile

git profile add home dotzero
git profile add home ""
git profile add home user.signingkey AAAAAAAA

Displays a list of available profiles

git profile list

Applies the selected profile entries to the current git repository

git profile use home

# Under the hood it runs following commands:
# git config --local dotzero
# git config --local ""
# git config --local user.signingkey AAAAAAAA

Export a profile in JSON format

git profile export home > home.json

Import profile from JSON format

cat home.json | xargs -0 git profile import home