3 ms·
Does 'origin/mybranch' is referring to the local copy of the remote branch? Why can I run 'git checkout origin/mybranch'(which results in a detached head) but n
by iamcreasy 3y ago
Does 'origin/mybranch' is referring to the local copy of the remote branch? Why can I run 'git checkout origin/mybranch'(which results in a detached head) but not 'git switch origin/mybranch'?
Also git reset appears to be taking a commit as the final parameter,
git reset [--soft | --mixed [-N] | --hard | --merge | --keep] [-q] [<commit>]
But why it is accepting `origin/mybranch`.
I am mostly rambling - feel free to ignore me.