I had git cloned an extension and ran git add . without thinking too much. Git decided to create a submodule,whichI didn't like. So I removed directory/.git and ran into Git: fatal: Pathspec is in submodule. I couldn'tfindout how ...
今天在使用git的时候,发现无论怎么改.gitignore文件都无法添加文件到版本控制,最后发现是缓存的原因,需要删除缓存再重新add git rm -rf --cached xxx
答:示例如下: fatal:Pathspec'Vundle.vim/autoload/vundle.vim'isinsubmodule'.vim/bundle/Vundle.vim' 解决办法: git rm -rf --cached .vim/bundle/Vundle.vim
Pathspec 'xxx' is in submodule git rm -rf --cached CocktailMakerModule/ git add CocktailMakerModule/ unable to index file 错误: error: unable to index file third_party fatal: updating files failed 解决方法: 进入对应目录再重新git add cd third_party git add . 再重新提交: git commit ...
Git出现 fatal: Pathspec 'xxx' is in submodule 解决方案 由于某个目录是一个 git 项目. 使用git add 后只增加了文件夹,但是没有文件。手动 Add 里面单个文件则报出错误信息: fatal: Pathspec 'xxx' is in submodule 解决方案: 发现vendor/crazyfd 下面并没有 .git 文件 ...
–**添加文件夹时遇到”fatal: Pathspec ‘src/’ is in submodule”错误**:这个错误表示指定的文件夹是一个子模块,不能直接添加到暂存区。解决方法是使用`git add –force src/`命令来强制添加文件夹到暂存区。 –**添加文件时遇到”did not match any files”错误**:这个错误表示指定的文件不存在或者命名有...
addEmptyPathspec Shown when the user runs git add without providing the pathspec parameter. addIgnoredFile Shown when the user attempts to add an ignored file to the index. amWorkDir Shown when git-am[1] fails to apply a patch file, to tell the user the location of the file. ambiguo...
git submodule add git@gitee.com:mabuo/html.git lala git add.git commit-m'add submodule' Git出现 fatal: Pathspec 'xxx' is in submodule 解决方案 由于某个目录是一个 git 项目. 使用 git add 后只增加了文件夹,但是没有文件。手动 Add 里面单个文件则报出错误信息: fatal: Pathspec 'xxx' is in...
fatal: Pathspec ‘some.file.name.goes.here’ is in submodule ‘some/folder/name’ Also you might notice, if you commit and pushed, only some skeleton of the of the folder structure without the actual files would be committed. The root of the problem is the folder you are trying to add...
fatal: Pathspec 'xxx' is in submodule 解决方案: 发现vendor/crazyfd 下面并没有 .git 文件 所以使用下面命令: git rm -rf --cached vendor/crazyfd/yii2-qiniugit add vendor/crazyfd/yii2-qiniu/* 参考 Git 出现 fatal: Pathspec 'xxx' is in submodule 解决方案 ...