git clone the entire warehouse, the following command can be obtained corresponding to the tag code
git checkout tag_name
However, this time you may be prompted to git currently in a "detached HEAD" status. (isolated detached)
Because the tag is equivalent to a snapshot, it can not change the code.
Directly on the command git checkout test branch, the following error
error: pathspec 'origin / XXX' did not match any file (s) known to git.
has a branch on the test items, using git branch -a not see the remote branch, directly on the command git checkout test given as follows:
Solution Yes:
1, execute the command git fetch back all branches update
2, execute git branch -a can see the test branch (branch has updated information)
3, branch switching git checkout test