简体   繁体   English

如何将我的GitHub项目仓库的一个分支推送到Moovweb Cloud?

[英]How can I push a branch of my GitHub project repo to the Moovweb Cloud?

I am using GitHub and have been pushing the master branch of my repo to the Moovweb Cloud. 我正在使用GitHub并且已经将我的repo的主分支推送到Moovweb Cloud。 I have started branching my project. 我已经开始分支我的项目了。

How can I push a specific branch to the Moovweb Cloud? 如何将特定分支推送到Moovweb云?

Thanks! 谢谢!

Actually, you need to push the new branch to master. 实际上,您需要将新分支推送到主分支。 The Moovweb Cloud doesn't compile other branches. Moovweb Cloud不会编译其他分支。 It's not meant to serve as a code hosting repository but rather to be used for testing and deployment. 它不是要作为代码托管存储库,而是用于测试和部署。

So the code would be: 所以代码是:

git push origin my_branch:master

This takes your "my_branch" branch and pushes it to master. 这需要你的“my_branch”分支并推动它掌握。 You may need to add a "-f" to force push it over the last build. 您可能需要添加“-f”以强制将其推送到最后一次构建。

Assuming that your remote repository on Moovweb Cloud is 'origin' in your local repository : 假设Moovweb Cloud上的远程存储库是本地存储库中的“origin”:

git push origin my_new_local_branch

will push and create the new branch on your remote repository. 将在您的远程存储库上推送并创建新分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM