[Development] Recover from a bad rebase (incorrect squash)

Koehne Kai Kai.Koehne at digia.com
Mon Oct 21 13:52:42 CEST 2013

> -----Original Message-----
> From: development-bounces+kai.koehne=digia.com at qt-project.org
> [mailto:development-bounces+kai.koehne=digia.com at qt-project.org] On
> Behalf Of Mandeep Sandhu
> Sent: Monday, October 21, 2013 1:50 PM
> To: development at qt-project.org
> Subject: [Development] Recover from a bad rebase (incorrect squash)
> Hi All,
> Is there a safe to recover from a bad rebase ? I've squashed commits
> incorrectly.

Use 'git reflog' to get the HEAD of the commit before the squash, and use git reset to restore it.



More information about the Development mailing list