difference between "git reset --hard" and "git checkout -f"
- From
Sitaram Chamarty <sitaramc@gmail.com>
- Date
- Apr 30, 2008, 11:37 UTC
- Message-ID
- <2e24e5b90804300437t39ac16a6ga3cbe0b91d7e5565@mail.gmail.com>
I have two questions:
(1) as in the subject line, what's the difference between these two commands? (I'm talking about those exact commands, not variations). I am unable to see any.
(2) shouldn't one of these have an option to throw away untracked files also, to get to a pristine HEAD-eqvt state? Or is it better to force user to use git clean separately for that?
Thanks,
Sitaram