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?
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
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
Problem solved!
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.
Right-click folder -> TortiseGit -> push-> choose unknown changes 》
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.