I'd like to know if we use git checkout <commit hash>
and the commit is in multiple branch, how do we know which one get checkout?
I didn't know how to do it visually so I tried to do a little drawing, sorry about that.
I'm not allowed to post it directly so here's a link.
If we have those three branches, then we git checkout <Commit Z>
, will we get Branch A or Branch B?
How does it work? Thank you!