美文网首页
'git status' failed with

'git status' failed with

作者: Farmers | 来源:发表于2018-10-12 18:01 被阅读60次

    sourceTree

    Kieran Senior [Atlassian]added a comment -18/Dec/2013 9:42 AM

    Hey Ray,

    This is because your index file has been corrupted. You could do the following. Using the terminal and changing your directory to your repository you can do the following (making sure you back up your repository first, just in case):

    rm .git/index

    git add .

    Or if you have changes in your working directory you want to keep you can do the following:

    rm .git/index

    git rese tHEAD.

    This can also be caused by conflicts with submodules, so if you have any submodules it might be worth looking into it.

    Try that out and if it works if you could comment back to let me know that'd be great.

    Thanks!

    相关文章

      网友评论

          本文标题:'git status' failed with

          本文链接:https://www.haomeiwen.com/subject/bnigaftx.html