例如我有个项目 hoten,需要在同时推送到 github 和 coding.net
请问这该如何实现?
人生最曼妙的风景,竟是内心的淡定与从容!
你应该搜索一下的,SF有问过这个问题,手机答题不太方便,就给个搜索结果吧:https://www.v2ex.com/t/37919
编辑本地仓库的.git/config文件即可达到目地: `[remote "all"]
url = git@github.com:foo/bar.git url = git@gitcafe.com:hello/world.git`
推送命令:git push all
git push all
可使用git 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
然后push的时候git push origin mastergit push origin mastergit push gitcafe mastergit push gitcafe master
git push origin master
git push gitcafe master
我恰好前几天遇到这个问题,写了一篇博客,希望对你有帮助。git创建多个远程仓库
你应该搜索一下的,SF有问过这个问题,手机答题不太方便,就给个搜索结果吧:https://www.v2ex.com/t/37919
编辑本地仓库的.git/config文件即可达到目地:
`[remote "all"]
推送命令:
git push all
可使用
git remote
方法。git remote add origin git@github.com:foo/bar.git
git remote add gitcafe git@gitcafe.com:hello/world.git
然后push的时候
git push origin master
git push origin master
git push gitcafe master
git push gitcafe master
我恰好前几天遇到这个问题,写了一篇博客,希望对你有帮助。git创建多个远程仓库