how to squash two commits into only one
- From
- Lynn Lin <lynn.xin.lin@gmail.com>
- Date
- Mar 29, 2011, 05:42 UTC
- Message-ID
- <AANLkTi=B37GABBc-YWfJN29Mh0kx4Tn8KenD5dJFo9j1@mail.gmail.com>
All, I have only have two commits in repo,then I want to squash these two commit into one through git rebase -i .However it fails
$ git rebase -i HEAD^1 it only show up one commit so can't squash (can't squash without a previous commit)
Any help on this?
Thanks Lynn