title: How to remove not-last commit in Git?
body: <p>I recently created a new branch, lets call it "branch1", which is based on another branch, lets call it "master". I then made a bunch of commits to branch1, and now I´ve realised that the first couple of commits was actually a mistake, The ones after those first few however are still great commits! So what I´m trying to do here is basically remove those first few commits, so that the ones after them basically gets rebased on master....how would one do this?</p>