>git checkout -b yoyoketang origin/yoyoketang fatal: Cannot update paths andswitchto branch 'yoyoketang'atthe same time. Did you intend to checkout 'origin/yoyoketang' which can not be resolved as commit?
>git checkout -b yoyoketang origin/yoyoketang A .idea/vcs.xml Branch yoyoketang set up to track remote branch yoyoketang from origin. Switched toanew branch 'yoyoketang' >git branch master * yoyoketang
同步到本地分支后,跟上面操作一样,先删除本地分支,再删除远程分支
1 2 3 4 5 6 7 8 9 10 11 12
>git checkout master A .idea/vcs.xml Switched to branch 'master' Your branch is behind 'origin/master' by 3 commits, and can be fast-forwarded. (use "git pull" to update your local branch) >git branch -D yoyoketang Deleted branch yoyoketang (was eaa102f). >git push origin --delete yoyoketang