How to resolve “git did not exit cleanly (exit cod

2020-01-24 04:27发布

I've run into this serious error while committing, and created a bug report.

I keep getting this error on TortoiseGit operations:

git did not exit cleanly (exit code 128)

I've reinstalled the program, rebooted, and tried to clone a fresh repo from github - nothing seems to work. I also deleted %appdata%\Tortoise git folder ... I'm at a loss now. Any advice on how to proceed?

14条回答
ゆ 、 Hurt°
2楼-- · 2020-01-24 04:52

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

查看更多
劳资没心,怎么记你
3楼-- · 2020-01-24 04:52

In my case a folder in my directory named as the git-repository on the server caused the failure.

查看更多
放荡不羁爱自由
4楼-- · 2020-01-24 04:53

I was having this same issue and I resolved it in the following way...

I have the NVIDIA "Tegra Android Development Pack" installed and it seems to also have a version of mysysgit.exe with it. TortoiseGit automatically found that installation location (instead of the standard git installation) and auto-populated it in the settings menu.

To correct this, go to: "Settings -> General" and there is a field for the path to mysysgit.exe. Make sure this is pointing to the correct installation.

查看更多
相关推荐>>
5楼-- · 2020-01-24 04:58

on win7 64:

git-gui gives a good answer: a previous git has crashed and left a lock file. Manually remove. In my case, this was in .git/ref/heads/branchname.lock.

delete, and error 128 goes away. It surprises that tortoisegit doesn't give such an easy explanation.

查看更多
我欲成王,谁敢阻挡
6楼-- · 2020-01-24 04:58

An quick solution would be to create a new local directory for example c:\git_2014, In this directory rightklick and choose Git Clone

查看更多
爱情/是我丢掉的垃圾
7楼-- · 2020-01-24 05:06

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

Deleting index.lock makes the error go away.

查看更多
登录 后发表回答