Pull requests with Sourcetree and Bitbucket not working as expected
Bitbucket allows to restrict changes and only allow pull requests for branches you pick. Sourcetree allows you to do pull requests, but before actually doing the pull request all changes get pushed. This is confusing, as the pull request should be a substitution for the push, so why push first.
Overall I want to achieve a GIT environment where the master is locked for direct edits, and only pull requests are allowed.
- I added a branch permission to master (HEAD not needed I assume, or do I need HEAD as well?) to not allow direct changes to the master anymore
- But Sourcetree always wants to do a push before creating a pull request. Therefore when working on the master, no pull request can be created because the push fails.
- I tried using a branch instead of working on master directly, which would allow to create a pull request via Sourcetree
- But I wanted to merge the branch back to the master locally before committing, so I can see the DIFF and fix potential conflicts locally before creating the pull request. So in the end as the branch is locally reintegrated into the master before creating the pull request, i end up in the same situation again.
I assume I am doing a wrong workflow?