简体   繁体   中英

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. I have started branching my project.

How can I push a specific branch to the Moovweb Cloud?

Thanks!

Actually, you need to push the new branch to master. The Moovweb Cloud doesn't compile other branches. 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. You may need to add a "-f" to force push it over the last build.

Assuming that your remote repository on Moovweb Cloud is 'origin' in your local repository :

git push origin my_new_local_branch

will push and create the new branch on your remote repository.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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