简体   繁体   中英

RunCloud Deployment Script vs Laravel Forge - why git merge instead of git pull?

Laravel Forge deployment script is obvious for me:

cd /home/forge/foo.bar
git pull origin develop

It pulls from the branch and deploys the rest.

However RunCloud says something different:

You don't have to run git fetch command but you must include your own git merge command.

Why git merge ? Why I must? What does this mean?

Why I can't do the same as with Forge?

Can I get any human explanation?

Considering git pull is git fetch + git merge , it is probable that RunCloud does the fetch for you.

All you need is to do the merge part of the pull in order to complete it.

You can see an example in the RunCloud blog post " Laravel With GIT Deployment The Right Way "

Check out the Git part of the runcloud doc :

One of the best features of RunCloud is that you can use GIT to attach your project to your Web Application. You can do an automatic pull to sync your website with your code.

So the fetch is done for you.

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