Where is the git documentation that specifies that a reset can take a branch name as an argument?

28 Views Asked by At

I've scanned the documentation here and I see no mention of how to reset to a branch's latest commit. I only see [<commit>] used but sure enough, you can specifiy 'origin/develop' in git reset --hard origin/develop and it works.

Am I missing something in the docs, or is there something implicit in git that I am not groking?

0

There are 0 best solutions below