git - 如何使用不在 master 分支中的 Sourcetree 进行自动 pull 请求?

标签 git github atlassian-sourcetree

我只是想知道 SourceTree 中是否有一个选项可以更改自动 pull 请求的默认分支。

SourceTree pull request

最佳答案

如果您使用的是 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 时,你可以选择将哪个分支用作“基础” enter image description here

关于git - 如何使用不在 master 分支中的 Sourcetree 进行自动 pull 请求?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25640218/

相关文章:

configuration - 如何在 SourceTree 中为多个存储库中的 Windows 配置 "Commit text links"功能

image - 从浏览器上传图片到GitHub

macos - 将分支推送到远程服务器失败

git - 是否可以在 Git 中签署 merge 提交?

git -C 命令错误

GitHub Action 发布标签

git - 无法添加到存储库

python - GitPython 列出特定文件的所有提交

git - .gitignore 不忽略 .rubocop.yml 文件

android - 在 Flutter 应用程序的源代码管理中 stash Google Maps API key