I had the following in my repo
Master---
\
Next-->Commit A.1,Commit A.2,Commit A.3 --......
I want to fix-up the A.* commits into one commit describing the feature A.
I tried git rebase -i origin next
, but that didn't work how I expected.
Is there any way of accomplishing this?
I thought of creating a branch foo, which is essentially next, and then rebase next onto foo followed by merge/delete foo. However, this seems sloppy.