如果你刚刚克隆了一个包含子模块的仓库,确保你已经初始化了子模块(使用 git submodule init)并更新了它们的内容(使用 git submodule update)。 通过这些步骤,你应该能够解决 "fatal: pathspec is in submodule" 的错误,并正确地管理你的 Git 仓库和子模块。
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
When pathspec is given to 'git stash push', the new stash records the modified states only for the files that match the pathspec. The index entries and working tree files are then rolled back to the state in HEAD only for these files, too, leaving files that do not match the ...
Git: fatal: Pathspec is in submodule 2018-12-18 17:04 −... Oops!# 0 1928 git fatal problems (12) 2019-12-25 09:35 −reference: https://stackoverflow.com/questions/28570836/git-cloning-remote-end-hung-up-unexpectedly-tried-changing-postbuffer-but-stil pro... ...
当前标签:Git: fatal: Pathspec is in submodule 昵称:Oops!# 园龄:7年11个月 粉丝:98 关注:0