search

Home  >  Q&A  >  body text

如何更新到多个git远程仓库中

比如我想同时更新到github和oschina,gitcafe?如何实现呢
还有就是如何部署两个公钥呢?

PHPzPHPz2799 days ago746

reply all(4)I'll reply

  • 高洛峰

    高洛峰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
    

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-24 09:15:16

    The public key generated by one computer can be used in multiple GIT repositories at the same time. . .

    reply
    0
  • ringa_lee

    ringa_lee2017-04-24 09:15:16

    /q/1010000000367632#a-1020000000369754

    reply
    0
  • ringa_lee

    ringa_lee2017-04-24 09:15:16

    Updated to github and oschina, gitcafe:

    /q/1010000000172591#a-1020000000172621

    reply
    0
  • Cancelreply