My environment in local:
- Git connecting with Bitbucket
- Sourcetree with
git-flow
Steps
- I create a
feature xin Sourcetree then I add the code. - I do a
commitincluding the option tocreate a pull requestandpushthe changes tofeature xbranch inremote. - In
pull requestI select the option forClose {branch} after the pull request is merged. - Within Bitbucket a member team approves the
pull requestthen merges it into thedevelopbranch. - I
pullthe new changes to my localdevelopbranch.
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.