Home

Awesome

git-identity

This CLI tool is a complementary git extension to allow better management and integration of multiple git user profiles.

The git command line is pain to use, hard to remember, and easy to get wrong. That's why this tool exists.

Syntax

ActionDescription
create <alias>creates a new alias
import <alias>imports global git user config as a new alias
clone <alias>clones a private repository with SSH key of alias
config <alias>modifies current git repository to always use alias
showprints out available aliases
show-key <alias>prints out the public SSH key for given alias

Examples

# import global git/ssh config as new alias
git identity import cookiengineer;

# create an alias
git identity create another-alias;

# clone a repo via an aliases' SSH key
git identity clone cookiengineer git@github.com:cookiengineer/private-repository.git ./private-repo;

# modify alias usage inside a repo
cd ./private-repo;
git identity config another-alias;
git push origin master; # uses another-alias automatically!

# easy copy/paste of public key to web apps
git identity show-key another-alias;

Installation

# clone the repository
git clone https://github.com/cookiengineer/git-identity;

# builds and installs the binary to /usr/bin/git-identity
cd ./git-identity;
bash install.sh;

Filesystem Backup / Config Folders

License

WTFPL