使用git的时候,有时候会出现远端更新了一个分支,但是从本地想checkout一个远程分支时,会出现如下错误: fatal: git checkout: updating paths is incompatible with switching branches. Did you intend to checkout 'origin/develop' which can not be resolved as commit? 并且在本地查看git branch -a,也看不到远程新加的那个分支,解…
Git新建远程分支和删除 现在我在master分支上,工作目标是干净的,也没有需要commit的: $ git branch * master release $ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean 新建远程分支 新建一个本地分支: $ git checkout -b dbg_lichen_sta…