TortoiseGit-git did not exit cleanly (exit code 1)

后端 未结 19 2217
花落未央
花落未央 2020-12-30 18:43

I got this message when i tried to create repository by using Git clone.

git did not exit cleanly (exit code 1)

How to fix this?

19条回答
  •  Happy的楠姐
    2020-12-30 19:25

    Sometimes it happens because of incomplete of some operations such as "stash save". It creates an index.lock file in the .git folder and that causes this error. What you need to do is going in to the .git folder and delete index.lock file and restart what you wanted to do.

    The .git Folder

    The index.lock File

提交回复
热议问题