Go to file
2020-12-09 18:26:04 +00:00
git-start In english, please 2020-12-09 18:26:04 +00:00
git-stop Permière version de l'outil 2020-11-04 22:31:18 +01:00
gitconfig_alban In english, please 2020-12-09 18:26:04 +00:00
README.md In english, please 2020-12-09 18:26:04 +00:00

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.