为什么我会得到“致命的:git status --porcelain failed”? [英] Why do I get "fatal: git status --porcelain failed"?

查看:350
本文介绍了为什么我会得到“致命的:git status --porcelain failed”?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是一个非常痛苦的流浪汉。我之前有过几次,我不明白为什么。 5分钟前,回购工作良好,我工作的时候,我移动了一些文件(这是很酷的,所有的都很酷),而且Git还是用它的裤子。任何想法为什么发生这种情况我怎样才能解决它克隆回购,移动文件等...

解决方案

哦,亲爱的,我是这样的失败。看起来问题源于Flash Builder将其他.git repos复制到子文件夹中。答案是删除所有不是repo的.git文件夹。


This is a huge pain in the bum. I've got this a few times before and I don't understand why. 5 mins ago the repo was fine and working, I move some files around (which is all cool and all) and git poops its pants. Any idea why this happens? How can I fix it apart from cloning the repo, moving the files, etc...

解决方案

Oh dear I'm such a fail. It looks like the problem stems from Flash Builder copying over other .git repos into sub folders. The answer is to remove all .git folders that aren't the repo's one.

这篇关于为什么我会得到“致命的:git status --porcelain failed”?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆