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'错误提示如何解决?

原文地址:https://www.cnblogs.com/dakewei/p/10816914.html

时间: 2024-10-14 00:57:02

git add时遇到类似fatal: Path 'XXX' is in submodule 'XXX'错误提示如何解决?的相关文章

[Linux] git add时的注意事项

git add -A  提交所有变化 git add -u  提交被修改(modified)和被删除(deleted)文件,不包括新文件(new) git add .  提交新文件(new)和被修改(modified)文件,不包括被删除(deleted)文件 并且git 只监控文件内容变化,不监控目录,因此不能直接提交一个空目录,可以在空目录里创建一个文件提交 当直接提交空目录时,会报这样的错误,因为根本没有内容变化 原文地址:https://www.cnblogs.com/taoshihan/

git push时遇到问题“fatal: No destination configured to push to.”

作者:zhanhailiang 日期:2014-12-02 [root@~/wade/lua/historyBrowsing]# git push fatal: No destination configured to push to. 查了下相应手册: [root@~/wade/lua/historyBrowsing]# git help push 原因是缺少推送的目标地址,解决方法有两种: 1. 添加"目标地址"参数: [root@~/wade/lua/historyBrowsin

git add 时忽略某些文件或者文件夹

1.git bash 新建  .gitignore文件 touch .gitignore 2.修改.gitignore文件,如下 target/ !.mvn/wrapper/maven-wrapper.jar *.pid *.log ### STS ### .apt_generated .classpath .factorypath .project .settings .springBeans .sts4-cache ### IntelliJ IDEA ### .idea *.iws *.im

git push 时:报missing Change-Id in commit message footer的错误

1. 一般而言,按照提示执行以下两个命令即可生成新的Change-id - gitdir=$(git rev-parse --git-dir); scp -p -P 29418 guan@192.168.84.22:hooks/commit-msg ${gitdir}/hooks/ - git commit --amend 2. 当执行完后,提交还是报missing Change-Id in commit message footer ,但是git log发现这次提交已经有了change-id

编译PHP时的错误提示及解决办法

php编译常见错误(已安装MySQL和Apache环境下) 错误1: configure: error: jpeglib.h not found. yum install libjpeg libjpeg-devel -y 错误2: configure: error: xslt-config not found. Please reinstall the libxslt >= 1.1.0 distribution yum install libxslt-devel -y 错误3: configur

自己编译的openwrt在开机时一直打印jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found...的错误提示

具体的输入信息是这样的. uboot> http Link down: eth0 Ethernet mode (duplex/speed): 1/1000 Mbps HTTP server is starting at IP: 192.168.0.250 HTTP server is ready! Request for: / Request for: /style.css Data will be downloaded at 0x80800000 in RAM Upgrade type: fi

执行git命令时出现fatal: 'origin' does not appear to be a git repository错误

在执行git pull origin master时出现: fatal: 'origin' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists 解决方案: git remote add origin [email protec

git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法

根据网上教程使用git,结果没几步就开始出问题... 就是个简单的git add 看到提示的fatal,下意识的认为很严重,开始以为跟大小写有关,结果试了下还是不行 加上文件的后缀名,搞定. 并且跟大小写无关 建议:各位同学操作时,注意后缀名的问题.操作系统中隐藏了后缀名的话,命令中就不要加:如果没有设置隐藏后缀名,命令中不能丢掉 git操作时提示:fatal: pathspec 'README' did not match any files 的处理办法 原文地址:https://www.cn

git review时出现fatal: ICLA contributor agreement requires current contact information.错误

使用git review时出现错误: fatal: ICLA contributor agreement requires current contact information. Please review your contact information: https://review.openstack.org/#/settings/contact fatal: Could not read from remote repository. Please make sure you have