我只是想知道 SourceTree 中是否有一个选项可以更改自动 pull 请求的默认分支。
最佳答案
如果您使用的是 SourceTree 和 github,答案似乎是 否 :( 是的!请参阅我答案的最后一部分!
attlasian 的文档说,如果管理员允许该选项,您可以在 BitBucket 中执行此操作 ( https://confluence.atlassian.com/display/BITBUCKET/Work+with+pull+requests )
If you are pulling a request across branches, you can have the option to close the branch when your request is merged. Whether you have this option depends on whether the repository is Git or Mercurial. Mercurial repositories always have this option. Git repositories have this option if the repo administrator allows it; Otherwise, the option is greyed out.
另一方面,如果您使用的是 github,则可以手动完成。
Merge pull request to a different branch than default, in Github
---编辑:
深入观察我发现,当你在 github 中创建 PullRequest 时,你可以选择将哪个分支用作“基础”
关于git - 如何使用不在 master 分支中的 Sourcetree 进行自动 pull 请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25640218/