I'm trying to squash last 3 commits using autosquash
options provided by git-rebase. I have the following history:
* commit 78a7e4844fa32d2ef1bb7bd9b44c4a1b9551d31a (HEAD, new)
| Author: maxim koretskyi <mkoretskyi@company.com>
| Date: Fri Feb 20 10:29:48 2015 +0200
|
| squash! s3
|
* commit f25491cadc646baf14bd7e951245c6777230a1d7
| Author: maxim koretskyi <mkoretskyi@company.com>
| Date: Fri Feb 20 10:29:42 2015 +0200
|
| squash! s2
|
* commit b988237356ffb59752e49049d083c558373f9486
| Author: maxim koretskyi <mkoretskyi@company.com>
| Date: Fri Feb 20 10:29:24 2015 +0200
|
| squash! s1
|
* commit abbcdc833e5eaabe79681bd82087b4d7969e8599 (new1, ne, 9484)
| Author: maxim koretskyi <mkoretskyi@company.com>
| Date: Wed Feb 18 18:21:58 2015 +0200
|
| 3
So I want commits with messages s1
, s2
and s3
prefixed with squash!
to be squashed. Now I issue the following command:
$ git rebase -i abbcdc833 --autosquash
And so git opens a text editor with the following content:
pick b988237 squash! s1
pick f25491c squash! s2
pick 78a7e48 squash! s3
But I expected it to be like this:
pick b988237 squash! s1
squash f25491c squash! s2
squash 78a7e48 squash! s3
What am I doing wrong?