使用git checkout -b origin/命令报错is not a commit and a branch 'dev_86984_newn' cannot be created from it
一、git是什么?
git的作用就是对文件进行版本管理,方便在不同版本进行切换修改,类似文件分不同时间备份让后需要时找回其中一份代替,不过更方便使用二、解决步骤
1.报错信息
使用命令如下(示例):
git checkout dev_86984_new
报错信息如下(示例):
error: pathspec 'dev_86984_new' did not match any file(s) known to git
使用命令如下(示例):
git checkout -b dev_86984_newn origin/dev_86984_new
报错信息如下(示例):
fatal: 'origin/dev_86984_new' is not a commit and a branch 'dev_86984_newn' cannot be created from it
2.解决方案
解决思路:由于在当前分支时间过长,当前分支改变内容过多
使用命令如下(示例):
git pull
git checkout -b dev_86984_newn origin/dev_86984_new
完成