多个 SSH KEY

Host github.com HostName github.com User hotoo IdentityFile ~/.ssh/id_rsa Host gitlab.example.com HostName gitlab.example.com User user.name@email.address IdentityFile ~/.ssh/id_rsa_gitlab_example_com Host example.com HostName www.example.com User admin Host shterm HostName shterm.example.com User user.name

git config --local

git config --local user.name username git config --local user.email user@email.com

project/.git/config

[user] name = username email = user@email.com

延伸阅读


Tags: SSH, Git

Published on 2013-11-25

Tags: SSH, Git

Date: 2013-11-25