报错【fatal: 'origin/remote-branch-name' is not a commit and a branch 'local-branch-name' cannot be created from it】。
原因可能是本地没有获取到远程仓库的分支列表。
用【git fetch --all】来解决。
如果只有一个远程仓库,如origin。不用【--all】也行。
展开
评论