LoginSignup
0
0

More than 5 years have passed since last update.

git with multi account

Posted at

client side, ssh-key & config

site-a = default: id-rsa
site-b = specific-key: site-b-rsa

Host ghe.hoge.fuga
 User git
 HostName ghe.hoge.fuga
 Port 22
 IdentityFile ~/.ssh/site-b-rsa

server side, ssh-pubkey

Add ssh key site-b-rsa.pub

commit author & email

site-a = default: ~/.gitconfig

site-b = specific repositry: git config each repos

git config user.name "hoge.hoge"
git config user.email "hoge@example.com"
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0