Suppose I have a branch and 5 commits. I've done some changes and noticed, that commits in range from 2 to 4 are relevant to the same fix and I'd like to squash them into a single one. Hovewer, I want to leave everything outside the borders untouched. Is it possible to achieve such behaviour?
Here is an example:
<sha-5> commit {5} <---- this one should be untouched
|
|
|
<sha-4> commit {4} <---- squash from this one
|
|
|
<sha-3> commit {3}
|
|
|
<sha-2> commit {2} <---- to this one
|
|
|
<sha-1> commit {1}. <--- everything that goes before, including this commit should be untouched as well