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
this approach will work. In my case, I cloned an extension using Git, and executedgit add .without much thought. Git created a submodule, which I wasn't fond of, resulting in me removingdirectory/.gitand encounteringGit: fatal: Pathspec is in submodule. I was unable to figure out...
–**添加文件夹时遇到”fatal: Pathspec ‘src/’ is in submodule”错误**:这个错误表示指定的文件夹是一个子模块,不能直接添加到暂存区。解决方法是使用`git add –force src/`命令来强制添加文件夹到暂存区。 –**添加文件时遇到”did not match any files”错误**:这个错误表示指定的文件不存在或者命名有...
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 解决方案 ...
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...
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...
GitSubmodule 允许一个 git 仓库,作为另一个 git 仓库的子目录,并且保持父项目和子项目相互独立。 父项目:外层项目 子项目:里面的项目。 常用命令 git submodule 涉及的常用功能有: git clone <repository> –recursive :递归的方式克隆整个项目 git submodule add <repository> <path> :添加子模块 ...
(默认的远程名称) pack # 包 pack index # 包索引 packfile # 包文件 parent # 父提交 patch # 补丁 # --- pathspec # 路径规格 pattern # 模式 pickaxe # 挖掘 plumbing # 管件(Git 底层核心命令的别称) porcelain # 瓷件(Git 上层封装命令的别称) precious-objects repo # 珍品仓库 prune # 清除...