Skip to content

Path-based git role management. Multiple git users in same environment.

License

Notifications You must be signed in to change notification settings

OpenGG/git-role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

git-role

Setup multiple git user in same environment.

Usage

Setup git user with command

# With curl
bash <(curl -s https://raw.githubusercontent.com/OpenGG/git-role/main/gr.sh)

# Or with wget
bash <(wget -qO- https://raw.githubusercontent.com/OpenGG/git-role/main/gr.sh)

Use case

  1. Github user 0 in ~/github/, gitlab user 1 in ~/gitlab/.
  2. Each git user with different user name, email and ssh key.
# github user

cd ~/github/
git clone git@github.com:vuejs/vue.git
cd vue

git config --list
# printing:
# user.name=github
# user.email=github@gmail.com

# gitlab user

cd ~/gitlab/
git clone git@gitlab.com:gnachman/iterm2.git
cd iterm2

git config --list
# printing:
# user.name=gitlab
# user.email=gitlab@gmail.com

About

Path-based git role management. Multiple git users in same environment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages