Git 拉取远程分支到本地

    git checkout -b newbranch_name --track origin/feature/newbranch_name

如果遇到类似如下问题:

    fatal: git checkout: updating paths is incompatible with switching branches.
    Did you intend to checkout 'origin/remote-name' which can not be resolved as commit?

使用下面命令

    git remote show origin
    git remote update
    git fetch

再试试

    git checkout -b local-name origin/remote-name

参考资料:

Git checkout on a remote branch does not work