git squash
- checkout feature branch
git checkout bug_fix
- act and operate on previous 3 commits from head
git rebase -i HEAD~3
- change the commits you want to collidate to "squash" instead of "pick"
- "squash" means consolidate to the previous "pick" commit
- next you will need to edit the commit message of the squashed commit. this will be the updated commit message