- Copy commit to fix hash
- Commit your changes using
--fixup [hash]
instead of commit message git rebase -i [base/branch] --autosquash
Mac:
git branch --list 'matchPatternHere*' | xargs git branch -d
Another way of doing the same:
git branch -D $(git branch | grep MATCH_PATTERN_HERE)