git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* difference between "git reset --hard" and "git checkout -f"
@ 2008-04-30 11:37 Sitaram Chamarty
  2008-04-30 12:16 ` Miklos Vajna
  0 siblings, 1 reply; 3+ messages in thread
From: Sitaram Chamarty @ 2008-04-30 11:37 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-04-30 12:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-30 11:37 difference between "git reset --hard" and "git checkout -f" Sitaram Chamarty
2008-04-30 12:16 ` Miklos Vajna
2008-04-30 12:47   ` Johannes Sixt

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 NNTP newsgroup(s).