diff --git a/README.md b/README.md index 5c5fbf4..d40c574 100644 --- a/README.md +++ b/README.md @@ -22,3 +22,8 @@ git update-ref -d HEAD ```sh git diff --name-only --diff-filter=U ``` + +# Remove branches that have already been merged with master +```sh +git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d +```