From: Johannes Schindelin <Johannes.Schindelin@gmx.de>
To: Bulat Musin <mbulatka@yandex.ru>
Cc: git@vger.kernel.org
Subject: Re: [bug report]: error doing_rebase
Date: Tue, 6 Feb 2018 10:47:35 +0100 (STD) [thread overview]
Message-ID: <nycvar.QRO.7.76.6.1802061045160.35@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz> (raw)
In-Reply-To: <d4246fa9-5ca2-33c9-d7b6-07adfd9b55a6@yandex.ru>
Hi,
On Mon, 5 Feb 2018, Bulat Musin wrote:
> Now there are 3 sequential commits, I want to squash them into 1:
>
> git rebase -i HEAD~2
>
> In editor I changed all "pick" to "squash", saved file, I got:
>
> error: cannot 'squash' without a previous commit
You cannot start with a squash. You have to pick the first one, then
squash the second into the first.
> However, 2.14.1 from Ubuntu's repo does the job - squashes 3 commits into 1.
It may be careless enough to do that, however, it might now have modified
the *wrong* commit, i.e. squashed the two patches *into HEAD~2*.
Please verify that your HEAD~2 is still intact and part of the rebased
history, otherwise you will have a problem.
Ciao,
Johannes
next prev parent reply other threads:[~2018-02-06 9:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-05 19:26 [bug report]: error doing_rebase Bulat Musin
2018-02-06 9:47 ` Johannes Schindelin [this message]
[not found] ` <0254c12c-e820-9c00-a4d0-2192fca76130@yandex.ru>
2018-02-07 14:12 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=nycvar.QRO.7.76.6.1802061045160.35@ZVAVAG-6OXH6DA.rhebcr.pbec.zvpebfbsg.pbz \
--to=johannes.schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=mbulatka@yandex.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).