checkout vs reset
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Feb 26, 2009, 07:08 UTC
- Message-ID
- <76718490902252308r474b193yba21b14e14a3baa@mail.gmail.com>
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.