如何完全远程合并两个 git 分支?

How to merge two git branches entirely remotely?

我在 Google 云存储库上有两个分支。一个是稳定的主分支,另一个是完成所有新更改的功能分支。

我要做的是将功能分支与主分支合并。

我在 SO 上搜索合并两个 git 分支,但所有解决方案都将在本地合并。拉下 feature 分支和 stable master 分支,合并它们,然后将更改推回去似乎很复杂。

是否有 git 命令要求远程 git 服务器提交两个分支的合并,我可以远程合并两个分支还是只有一个选项可以在本地合并分支?

任何帮助将不胜感激。

I have search on SO for merging two git branches but all solution is about to do merge locally. it seems complicated to pull down the feature branch and the stable master branch, merge them, and then push the changes back.

实际上,我认为最好在本地进行所有合并,因为如果出现任何冲突,那么人们可以很好地处理它们。大多数 IDE 现在都有 Git 插件,可以轻松解决冲突。

Is there a git command to ask a remote git server to commit a merge of two branches and can i merge two branches remotely or there is only one option to merge branches locally?

据我所知,没有Git命令来执行远程合并。但是,大多数 Git 存储库 确实 支持某种形式的远程合并。例如,可以在 GitHub 上将一个分支合并到另一个分支。但需要注意的是,合并期间不能有任何冲突。避免此类冲突的典型方法是先在本地执行合并,然后推出功能分支。另一个要求是必须在 GitHub 服务器上启动合并。