I'd like to squash some specific commits in my local branch.
All the commits are already on remote branch.
My case is the following :
BranchA:
- commit1
- commit2
- commit3
- commit4
- commit5
Commits to squash : commit2 TO commit4
Desired result :
- commit1
- commitSQUASH
- commit5
How can I do that with GIT ?
Thanks