git add时遇到类似fatal: Path 'XXX' is in submodule 'XXX'错误提示如何解决?
Posted Jello
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git add时遇到类似fatal: Path 'XXX' is in submodule 'XXX'错误提示如何解决?相关的知识,希望对你有一定的参考价值。
答:示例如下:
fatal: Pathspec ‘Vundle.vim/autoload/vundle.vim‘ is in submodule ‘.vim/bundle/Vu
ndle.vim‘
解决办法:
git rm -rf --cached .vim/bundle/Vundle.vim
以上是关于git add时遇到类似fatal: Path 'XXX' is in submodule 'XXX'错误提示如何解决?的主要内容,如果未能解决你的问题,请参考以下文章
Git 报错:fatal: destination path ‘.‘ already exists and is not an empty directory.
#yyds干货盘点# Git 报错:fatal: destination path ‘.‘ already exists and is not an empty directory.
git在提交时报错error invalid path cannot add to the index的解决办法