Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-profile

A small shell script for managing multiple git identities (name/email, and any other config keys) and switching between them per-repository or globally.

Installation

Run the included install.sh:

./install.sh

By default this installs to ~/.local/bin/git-profile. Make sure that directory is on your PATH.

To install somewhere else, set PREFIX (the script installs to $PREFIX/bin):

PREFIX=/usr/local ./install.sh

Alternatively, install manually:

cp git-profile /usr/local/bin/git-profile
chmod +x /usr/local/bin/git-profile

Quick start

# create a couple of profiles
git-profile new work
git-profile new personal

# apply one globally, or just to the current repo
git-profile use personal
git-profile use work --local

# see what you've got
git-profile ls
git-profile get work

About

Manage multiple Git configuration profiles

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages