I sometimes use the checkout -b option to create a new branch, check it out at the same time and set up tracking in one command.
checkout -b
In a new environment, I
It causes by that your local branch doesn't track remote branch. As ssasi said,you need use these commands:
git remote update git fetch git checkout -b branch_nameA origin/branch_nameB
I solved my problem just now....