Git git 提交多个仓库

adventurelw · April 15, 2013 · Last by ippotsuko replied at June 03, 2015 · 4924 hits

先提交到 github: git remote add origin [email protected]:xxxx/yyy.git git push -u origin master 没问题

再提交到 gitcafe: git remote add origin2 [email protected]:xxxx/yyy.git git push -u origin2 master 以下信息: Warning: Permanently added the RSA host key for IP address '117.79.146.98' to the list of known hosts. Project identified as xxxx@yyy doesn't exist. fatal: The remote end hung up unexpectedly

但实际上 xxxx/yyy 存在,将.git/config 里面的 [remote "origin2"] 删除,修改 [remote "origin"] 中 url github 为 gitcafe,然后就可以顺利提交,但每次都改一下稍微有点麻烦。 请教怎么弄可以直接一点?比如我 git push -u origin master 到 github git push -u origin2 master 到 gitcafe 十分感谢。

You need to Sign in before reply, if you don't have an account, please Sign up first.