I'm new to interactive rebasing in Git so I made a branch where I could squash commits ( squash-branch ) just in case I ruined something. I didn't change any of the files on the branch, just the history. I merged the branch to master expecting that it would take the commit new commit history of the squash-branch.
How do I replace the commit history of master with squash-branch's history? To say it in a different mood, I want master to have squash-branch's history.
I've already tried two methods of force overwriting master with squash-history. The "ours strategy" and git branch -f master squash-branch.
Please notify if you need more details!
Thanks!
git resetcan do that:Details in git-reset(1).