I have master look like
|
|
abcd3 Commit3 (file A, B)
|
|
abcd2 Commit2 (file C, D)
|
|
abcd1 Commit1 (file E)
|
|
and in my feature branch
xyz1 MyCommit (file A, B)
|
|
abcd1 Commit1 (file E)
|
|
When I merge master -> feature, it conflict. I resolved and have
xyz3 ResolveConflictAndMyNewCommit (file X, Y)
|
|
xyz2 Merge branch master into feature
|
|
xyz1 MyCommit (file A, B)
|
|
abcd1 Commit1 (file E)
|
|
So I want my feature branch now look like
|
|
xyz MyCommit (file A, B, X, Y)
|
|
abcd3 Commit3 (file A, B)
|
|
abcd2 Commit2 (file C, D)
|
|
abcd1 Commit1 (file E)
|
|
Does git have command for this case? I tried squash but still can't make my feature branch look like result. Beside that feature branch has been pushed, I need a solution to clear history in this branch, thank you!!!