迷茫2017-04-28 09:08:17
You should search for it. SF has asked this question before. It is not convenient to answer the question on mobile phone, so here is the search result: https://www.v2ex.com/t/37919
高洛峰2017-04-28 09:08:17
Edit the .git/config file of the local warehouse to achieve the goal:
`[remote "all"]
url = git@github.com:foo/bar.git
url = git@gitcafe.com:hello/world.git`
Push command: git push all
大家讲道理2017-04-28 09:08:17
Availablegit remote
方法。git remote add origin git@github.com:foo/bar.git
git remote add gitcafe git@gitcafe.com:hello/world.git
Then push git push origin master
git push origin master
git push gitcafe master
git push gitcafe master
迷茫2017-04-28 09:08:17
I happened to encounter this problem a few days ago and wrote a blog. I hope it will be helpful to you. git creates multiple remote repositories