“fatal: 'git status --porcelain' failed in submodule
来源:互联网 发布:切换输入法快捷键mac 编辑:程序博客网 时间:2024/05/16 02:01
转载自:http://blog.csdn.net/may680/article/details/40672291
在进行Git操作时遇到一个比较怪异的事件:
从其他源代码中拷贝了一个目录到自己代码中,对这个目录进行了文件增加操作,并使用 git add 加入一些文件之后,运行 git status 会出现硬盘灯长亮,系统繁忙,反复提示错误信息:
“fatal: 'git status --porcelain' failed in submodule android_rk/system/core”
删除这个目录后,问题消失;再次增加这个目录,又会出现这个现象。
后来发现在 android_rk/system/core 目录下有隐藏的目录 .git 和文件 .gitignore ,这是 git 专用的目录,拷贝的时候带过来的。
删除这两个,问题就解决了。
以后要注意,git管理的目录中不能再带.git目录。
0 0
- “fatal: 'git status --porcelain' failed in submodule
- git 错误解决:fatal: 'git status --porcelain' failed in submodule android_rk/system/core
- git 排错 fatal: 'git status --porcelain' failed in submodule abi/cpp
- git fatal: Path '' is in submodule '' 错误
- git fatal: Path XXX is in submodule XXX
- Git出现 fatal: Pathspec 'xxx' is in submodule 解决方案
- git submodule update failed
- git submodule update failed
- Git出现 fatal: Pathspec 'xxx' is in submodule 'module/Cxxx' 异常 解决方案
- git 出现 fatal: Pathspec 'assets/' is in submodule 'public/components/clockpicker',解决方法
- git 出现 fatal: Pathspec 'assets/' is in submodule 'public/components/clockpicker',解决方法是
- Git fatal: Authentication failed
- how to remove submodule in git
- Git Submodule
- git submodule
- git submodule
- Git submodule
- git submodule
- caffe源码学习-io
- Nginx:正向代理与反向代理的区别
- 深层学习为何要“Deep”(下)
- ubuntu14.04安装opencv
- display:inline、display:block、display:inline-block三者真实用途及含义是什么?
- “fatal: 'git status --porcelain' failed in submodule
- 算法-查找算法
- 9.Linux驱动开发前奏(2)-硬件访问技术
- Web服务器、容器、Servlet分别干什么?
- 8086汇编常见问题及解决方案
- C++ 实现tring字符串trim函数和split函数
- 一次奇妙的大项目维护经历(1)
- 大奖赛现场统分
- React 开发中的几个注意点