Delete feature branch in fork remote and locally and update forked master branch.
- Delete feature branch on GitHub via button in pull request
- Delete feature branch locally via
git branch -d <feature_branch>
and remote tracked feature branch viagit branch -dr origin/<feature_branch>
- Update forked master branch via
git fetch upstream
andgit rebase upstream/master
and finallygit push origin master
Read more:
- Stackoverflow: My pull request has been merged, what to do next?
- GitHub Blog: Tidying up after Pull Requests
- Stackoverflow: Delete a Git branch both locally and remotely
- Stackoverflow: How to update a GitHub forked repository?