Is there a difference between "git reset --hard hash" and "git checkout hash"?

Posted by e-satis on Stack Overflow See other posts from Stack Overflow or by e-satis
Published on 2010-03-29T21:55:02Z Indexed on 2010/03/29 22:13 UTC
Read the original article Hit count: 437

Filed under:
|
|

While reset and checkout have different usages most of the time, I can't see what difference there is between these two.

There probably is one or nobody would have bothered adding a "--hard" option to do something the basic "checkout" can do.

Maybe there is a difference is the way you will the the history?

© Stack Overflow or respective owner

Related posts about git

Related posts about git-reset