git-profile

command module
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 2 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL