且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过命令行在远程分支上执行Git拉取请求

更新时间:2023-09-26 17:02:40

我发现我基本上可以通过登录服务器并执行以下操作:

I've found I can basically do what I want by logging into the server and doing:

git pull

(即使我正在分阶段,这也会拉动最新的进展

(this will pull the latest develop even though i'm in staging

git merge origin/develop -m我的提交消息"

(这将合并成本地开发阶段)

(this will merge develop into staging locally)

git push

(这将更新远程登台)

您还需要在本地进行开发,才能使其正常工作.

You need to have develop locally as well for this to work.

推荐文章