我正在使用Github的web API来控制我的fork和一个upstream。任务是从upstream库拉取并合并到我的fork中。当发生冲突时,我希望API强制合并文件,并在文件中显示冲突,如下所示:
这可以通过在运行git pull或git merge时使用git客户端自动完成,但是Github API(https://developer.github.com/v3/repos/merging/)只会在冲突时失败,而不会尝试使冲突看起来像上面那样。是否有任何方法可以通过Github API实现上述功能?谢谢!
>>>>>>
This line is from my fork
======
This line is from upstream
<<<<<<
这可以通过在运行git pull或git merge时使用git客户端自动完成,但是Github API(https://developer.github.com/v3/repos/merging/)只会在冲突时失败,而不会尝试使冲突看起来像上面那样。是否有任何方法可以通过Github API实现上述功能?谢谢!