- macOS
- git version 2.17.2 (Apple Git-113)
Move to the directory with a target git branch.
Check current branch with
git branch -v
.
If the branch is not the target, use git checkout
command to change the current branch.
Run the bash file to delete git local branches that you have merged into the branch you're currently on.
bash init.sh