标签:
git报错 Cannot update paths and switch to branch ‘snapshot_mixuse‘ at the same time.
错误如下:
dmj-parent git:(master) git checkout -b snapshot_mixuse --track origin/snapshot_mixuse
fatal: Cannot update paths and switch to branch ‘snapshot_mixuse‘ at the same time.
Did you intend to checkout ‘origin/snapshot_mixuse‘ which can not be resolved as commit?
? dmj-parent git:(master) git remote show origin
* remote origin
Fetch URL: git@git.superboss.cc:dmj/jxc.git
Push URL: git@git.superboss.cc:dmj/jxc.git
HEAD branch: master
Remote branches:
master tracked
snapshot tracked
snapshot-item tracked
snapshot_mixuse new (next fetch will store in remotes/origin)
snapshot_wlb tracked
Local branches configured for ‘git pull‘:
master merges with remote master
snapshot merges with remote snapshot
snapshot-item merges with remote snapshot-item
Local refs configured for ‘git push‘:
master pushes to master (local out of date)
snapshot pushes to snapshot (local out of date)
snapshot-item pushes to snapshot-item (up to date)
? dmj-parent git:(master)
? dmj-parent git:(master) git remote update
Fetching origin
remote: Counting objects: 28, done.
remote: Compressing objects: 100% (22/22), done.
remote: Total 28 (delta 14), reused 0 (delta 0)
Unpacking objects: 100% (28/28), done.
From git.superboss.cc:dmj/jxc
* [new branch] snapshot_mixuse -> origin/snapshot_mixuse
275fed2..b289f38 snapshot_wlb -> origin/snapshot_wlb
? dmj-parent git:(master) git fetch
? dmj-parent git:(master) git checkout -b snapshot_mixuse origin/snapshot_mixuse
Branch snapshot_mixuse set up to track remote branch snapshot_mixuse from origin.
Switched to a new branch ‘snapshot_mixuse‘
Cannot update paths and switch to branch 'snapshot_mixuse' at the same time.
标签:
原文地址:http://blog.csdn.net/mergades/article/details/51355387