简体   繁体   中英

How to make automatic pull request with Sourcetree NOT in master branch?

I just wondering is there an option in SourceTree to change the default branch of automatic pull requests.

SourceTree拉取请求

If you are using SourceTree & github the answer seems to be no :( Yes ! see the last part of my answer !

The documentation of attlasian says that you can do that in BitBucket if the admin has allowed that option ( 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.

In other hand if you are working with github you can do that manually.

Merge pull request to a different branch than default, in Github

---Edit:

Looking deep i found that when you create your PullRequest in github you can select which will be your branch used as "base" 在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM