I understand that git reset updates the index, and git checkout updates the working copy. What I don't understand is a use case that requires git reset to accept an argument for a link and path? It seems I would always like to use git checkout in this case?
This happens all the time when people ask why they cannot git reset some-ref --hard -- some/path/to/file . The real question is why git reset even accepts git reset some-ref -- some/path/to/file when we have git checkout .
I never thought about it until I taught someone the difference between them.
source share