'git checkout -f' versus 'git reset --hard'
- From
Bill Lear <rael@zopyra.com>
- Date
- Apr 5, 2007, 13:36 UTC
- Message-ID
- <17940.64329.10165.993967@lisa.zopyra.com>
After a failed merge, I want to undo things. I typically use git reset --hard, and it works like a charm. Others have tried to use git checkout -f, but I have cautioned that git reset --hard is really the way to do it. Is there a difference here, or are they equivalent?
Bill