How to resolve "git did not exit cleanly (exit code 128)" error on TortoiseGit? [closed]

Solution 1:

It's probably because your SSH key has been removed/revoked. Make a new one and add it to your GitHub account.

Solution 2:

for me I simply had to add configure my git username and email with the following commands:

git config --global user.email "[email protected]"
git config --global user.name "Your Name"

Solution 3:

git-bash reports fatal: Unable to create <Path to git repo>/.git/index.lock: File exists.

Deleting index.lock makes the error go away.