Open rogerxu opened 6 years ago
$ git branch --merged
$ git branch --contains
Remove all local branches what were merged into master.
$ git branch --merged master | grep -v "^\*" | xargs -n 1 git branch -d
Git Orphan Branch Example | Examples Java Code Geeks - 2019
$ git checkout --orphan config/services $ git rm -rf . $ git add . $ git commit -m "Initial commit"
Branch
Remove all local branches what were merged into master.