gitrc
v1.0.0
Published
Create different git profiles and switch between them
Readme
gitrc
Create different git profiles and switch between them
Usage
First install gitrc:
$ npm install -g gitrcThen create a ~/.gitrcs folder and add some profiles.
$ ls -1 ~/.gitrcs
personal
workProfiles are actually just shell scripts that can have anything in them:
$ cat ~/.gitrcs/personal
git config --global user.name "Jessica Kelly"
git config --global user.email "[email protected]"$ cat ~/.gitrcs/work
git config --global user.name "Jessica Kelly"
git config --global user.email "[email protected]"You can list what gitrcs you have by running
$ gitrc
personal
workThen you can activate one by running:
$ gitrc work$ gitrc
personal
work (active)
$ git config --global --get user.email
[email protected]