diff --git a/README.md b/README.md index 2fee01f..befd11a 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,14 @@ Because of most of the reasons above, we use [Feature-branch-workflow](https://w * Pull request will be accepted, merged and close by reviewer. * Remove your local feature branch if you're done. + ```sh + git branch -d + ``` + to remove all branches which are no longer on remote + ```sh + git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done + ``` + ### 1.3 Writing good commit messages