高洛峰2017-04-24 09:15:16
For public keys, you can set different hosts to use different public keys in .ssh/config. For details, please refer to http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config -file/
If deployed in different code bases, you only need to add a few remotes, such as
git remote add remote1 git@git.repo1.com:xxx.git
git remote add remote2 git@git.repo2.com:xxx.git
天蓬老师2017-04-24 09:15:16
The public key generated by one computer can be used in multiple GIT repositories at the same time. . .
ringa_lee2017-04-24 09:15:16
Updated to github and oschina, gitcafe:
/q/1010000000172591#a-1020000000172621