I have a test repository with the following history:
commit eb4a4d52a8fe6abdebb93c7747beac2d511003af (HEAD, master) Merge: 22f849c 94e27d1 Author: Your Name Date: Mon Jan 27 00:51:42 2014 +0100
Merge branch 'cheryr' Conflicts: FILEcommit 22f849c403b6cdf43280e66e937931bf9d0ab25a Author: Your Name Date: Sun Jan 26 21:01:35 2014 +0100
4 totocommit 94e27d1c78833784619e25eeb8e0186f154f2282 (cheryr) Author: Your Name Date: Mon Jan 27 00:48:12 2014 +0100
totocommit 2368d78ba95811e9eb9897487cccb7b7f6927910 Author: Your Name Date: Sun Jan 26 22:31:51 2014 +0100
10commit b1f0f8a1a1951e661a7e833314fc483085516b0c (tmp) Author: Your Name Date: Sun Jan 26 22:19:56 2014 +0100
9commit 3a8f2e17e721821ae8ebd1e272437c8632224b9a Author: Your Name Date: Sun Jan 26 22:18:23 2014 +0100
8commit 28d4a62d4d21c3e8155553e1216bfa981afe7212 Author: Your Name Date: Sun Jan 26 22:15:42 2014 +0100
7
Is this possibe to squash a few first commits into one, together with merge commit? It's not possible to simply pass HEAD~4 to git rebase -i because it will take 4 commits back from the first parent of the merge commit.