Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 pull request

like image 825
Stepan Suvorov Avatar asked Sep 03 '14 08:09

Stepan Suvorov


People also ask

Can you create a pull request without a branch?

You can create pull request but you instead fork someone project then upload your own and in your fork make changes. Select options to compare branches. This is one of method.

How do I create a pull request from a remote branch?

Once you've committed changes to your local copy of the repository, click the Create Pull Request icon. Check that the local branch and repository you're merging from, and the remote branch and repository you're merging into, are correct. Then give the pull request a title and a description. Click Create.


1 Answers

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" enter image description here

like image 122
mayo Avatar answered Oct 12 '22 22:10

mayo