I am trying to learn git but I am confused about one part. Usually I use:
git pull origin branch_A
to fetch the remote branch. Usually my current local branch is branch_A
the branch on the remote repository is also branch_A
, so I will get the remote/branch_A -> local/branch_A
. But what if I want to get remote/branch_B -> local/branch_A
what should I do? What is the real meaning of the branch after origin
. It means the remote branch or the local branch? Does this command mean fetch default remote branch to local branch_A
or fetch remote branch_A to current local branch
?