Skip to content

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

License

Notifications You must be signed in to change notification settings

dm3ch/git-profile-manager

 
 

Repository files navigation

Git Profile Manager

CircleCI Go Report Card MIT License

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.

Installation

If you are OSX user, you can use Homebrew:

brew install dm3ch/tap/git-profile-manager

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.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-manager

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

Usage

Add an entry to a profile

$git profile-manager add test-profile                                                                                                                                                     1|0 ↵  03:30:56
Name: Test Name
Email: [email protected]
Signing Key:
Profile test-profile added successfully

List of available profiles:

git profile-manager list

Apply the profile to current git repository:

git profile-manager use home

License

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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%