I am very new to manipulating anything in git, but I have a bunch of commits that I want to combine into one commit (7 commits of me deleting one file at a time). I have made more commits since then and I would like to keep those. How would I combine all those commits into one big commit?
If you visualize it from old to new, left to right, and where the commits I want to combine are in uppercase, it looks like this:
<--b--C--D--E--F--G--H--I--j--k--l
Where I want it to look like this:
<--b--C--j--k--l
BTW, k is a merge if that matters.
The question this is marked as a duplicate of is wrong, it should be git squash older commits (not last one)