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条回答
贪生不怕死
2楼-- · 2020-01-24 04:43

make sure the username and email fields are not empty in the config file. and try to clone to an empty directory. these steps worked for me.

查看更多
Rolldiameter
3楼-- · 2020-01-24 04:44

If you're running windows 7:

I was trying to decide the best way to do this securely, but the lazy way is :

  1. right-click the parent folder
  2. click the "properties" button
  3. click the "security" tab
  4. click the "edit" button
  5. click the group that starts with "Users"
  6. click the checkbox that says "full control"
  7. click all the OK's to close the dialogs.

I realize this might circumvent windows "security" features, but it gets the job done.

查看更多
干净又极端
4楼-- · 2020-01-24 04:48

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

git config --global user.email "you@example.com"
git config --global user.name "Your Name"
查看更多
何必那么认真
5楼-- · 2020-01-24 04:48

I did git revert a multiple times ,and it worked for me make sure un-check the files while reverting you need changes. Stash your changes and pull again.

查看更多
老娘就宠你
6楼-- · 2020-01-24 04:50

In my case, I forgot to add git to the respository name at the end.

查看更多
不美不萌又怎样
7楼-- · 2020-01-24 04:51

In my case, it was because of the proxy. A proxy was needed in the corporate network and TortoiseGit / Git does not seems to automatically get information from Windows internet settings. Setting up the proxy address solved the issue.

查看更多
登录 后发表回答