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

后端 未结 19 2112
花落未央
花落未央 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条回答
  • 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

    0 讨论(0)
  • 2020-12-30 19:26

    I also encountered this error message due to longpath issues. Try to input this, that's helpful for me.

    git config --global core.longpaths true

    0 讨论(0)
  • 2020-12-30 19:27
    1. Right-click > Revert > Select All
    2. Click OK;
    3. After Revert process is finished, PULL.

    Problem solved!

    0 讨论(0)
  • 2020-12-30 19:27

    I have faced this situation and in my case, I was using two git id's simultaneously. so what it does it will update the credentials in the credential Manager

    Control Panel\User Accounts\Credential Manager

    as shown

    inside Credential Manager, you will find the git hub credentials inside the Generic credentials there you have to update your git credentials.

    0 讨论(0)
  • 2020-12-30 19:29

    Right-click folder -> TortiseGit -> push-> choose unknown changes 》

    0 讨论(0)
  • 2020-12-30 19:29

    I ran into the same issue after upgrading Git. Turns out I switched from 32-bit to 64-bit Git and I didn't realize it. TortoiseGit was still looking for "C:\Program Files (x86)\Git\bin", which didn't exist. Right-click the folder, go to Tortoise Git > Settings > General and update the Git.exe path.

    0 讨论(0)
提交回复
热议问题