My environment in local:
- Git connecting with Bitbucket
- Sourcetree with
git-flow
Steps
- I create a
feature x
in Sourcetree then I add the code. - I do a
commit
including the option tocreate a pull request
andpush
the changes tofeature x
branch inremote
. - In
pull request
I select the option forClose {branch} after the pull request is merged
. - Within Bitbucket a member team approves the
pull request
then merges it into thedevelop
branch. - I
pull
the new changes to my localdevelop
branch.
NOTE It's important to review the code through pull request
before merging it into develop
, so the question is:
Is there any way to delete automatically the feature x
branch in my local after made a pull
in develop
?
*I tried with a fetch
but it does not work.