一份代码能否同时托管于BAE和github?

在本地仅保存一份代码的时候能否同时托管于github与BAE?

假如github上有github.com/userName/projectName,同时自己在BAE上也有同名应用projectName时,如何才能保持这两个远程仓库公用一份本地代码来开发上传?

本人git新手,还望大神赐教。

阅读 5.7k
1 个回答

新增两个远程源:

git remote add github github.com/userName/projectName
git remote add bae  path.com/projectname

git commit 后分别提交到两个远程源去(默认本地master分支)。

git push github master
git push bae master
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进