Why do I get “fatal: git status --porcelain failed”?

前端 未结 13 1968
星月不相逢
星月不相逢 2020-12-09 07:39

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 a

13条回答
  •  情书的邮戳
    2020-12-09 08:25

    For me it was different, nor git init solved the issue nor the worktree was wrong. The error that I had was

    fatal: unable to create threaded lstat
    fatal: 'git status --porcelain=2' failed in submodule ext/hdf5
    

    The solution for me was git gc.

提交回复
热议问题