git-multi-user/README.md
2020-12-09 18:26:04 +00:00

800 B

This lib permits to use different git users in the same session.

User just load its git configuration in a git repo.

Install

Add the path to your ~/.bashrc:

    # Add git multi-user tool
    PATH=$PATH:/path/to/git-multi-user

One may need to run source ~/.bashrc to make it ready.

Configuration

Create a config file (one can used Alban one as example):

cp .gitconfig_alban .gitconfig_john

Modify at least name and email.

Note: It is better if the session does not have any git account. I don't really dig up a mixed configuration.

Usage

To start working in a git repo:

git-start alban

When job is done:

git-stop

Easy ! ;)

Note: Git-multi-user replaces git variable include.path. Be carefull that it is not already used.