例如我有个项目 hoten,需要在同时推送到 github 和 coding.net
请问这该如何实现?
人生最曼妙的风景,竟是内心的淡定与从容!
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
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
git push all
Availablegit remote方法。git remote add origin git@github.com:foo/bar.gitgit remote add gitcafe git@gitcafe.com:hello/world.git
git 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 mastergit push origin mastergit push gitcafe mastergit push gitcafe master
git push origin master
git push gitcafe master
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
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
Edit the .git/config file of the local warehouse to achieve the goal:
`[remote "all"]
Push command:
git push all
Available
git 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
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