问题描述
比如我想同时更新到github和oschina,gitcafe?如何实现呢还有就是如何部署两个公钥呢?
问题解答
回答1:公钥的话,可以在.ssh/config设置不同的主机采用不同的公钥,具体的可以参考 http://nerderati.com/2011/03/simplify-your-life-with-an-ssh-config-file/
部署在不同的代码库的话,只需要加几个remote就行了, 比如
git remote add remote1 git@git.repo1.com:xxx.gitgit remote add remote2 git@git.repo2.com:xxx.git回答2:
一台电脑是生成的公钥是可以同时应用在多个GIT仓库中的。。。
回答3:/q/1010000000367632#a-1020000000369754
回答4:时更新到github和oschina,gitcafe:
/q/1010000000172591#a-1020000000172621

