Thread (3 messages) flat view 3 messages, 2 authors, 2016-06-15

checkout vs reset

From: Jay Soffian <hidden>
Date: 2016-06-15 22:46:17

Is there any different between the following two commands?

git reset <commit> -- <paths>...
git checkout <commit> -- <paths>...

As far as I can tell from the man pages, they are equivalent. To wit:
both update the index and working copy for the given paths to the
state that they were in in <commit>.

j.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help