TortoiseGit trouble: git did not exit cleanly (exi

2019-03-20 15:08发布

Here is a little bit background:

  1. I run Win7
  2. I have private git repo and installed Github for Windows
  3. I didn't like the Github for Windows client (lack capabilities). I installed TortoiseGit for Windows (still keep Github for Windows)
  4. I followed steps here exactly http://dancingmonkeysaccelerated.blogspot.com/2012/03/git-for-windows-with-tortoisegit-and.html
  5. I can get log and commit local

enter image description here

  1. Then I Push

enter image description here

  1. However it gave error git did not exit cleanly (exit code 128)

enter image description here

I read this thread:

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

And actually changed SSH key by running Puttygen THREE TIMES already. I also set Full Permission for Users in the folder. Nothing works!!

Here is what I see in Environment Path

PATH=(others);C:\Users\myusername\AppData\Local\GitHub\PortableGit_93e8418133eb85e81a81e5e19c272776524496c6\libexec\git-core;

GIT_SSH=C:\Program Files\TortoiseGit\bin\TortoiseGitPLink.exe

SVN_SSH=C:\Program Files\TortoiseGit\bin\TortoiseGitPLink.exe

SSH_ASKPASS=C:\Program Files\TortoiseGit\bin\SshAskPass.exe

GIT_ASKPASS=C:\Program Files\TortoiseGit\bin\SshAskPass.exe

However: if I use Github for Windows it works fine.

Can someone point me to a direction to troubleshoot this TortoiseGit issue?

10条回答
叛逆
2楼-- · 2019-03-20 15:36

I think I found a better alternative for Windows: http://www.syntevo.com/smartgithg/index.html

It's been working so far. But I still prefer TortoiseGit if I can get it to work.

查看更多
我命由我不由天
3楼-- · 2019-03-20 15:42

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.

查看更多
何必那么认真
4楼-- · 2019-03-20 15:44

In "code pushing" popup, go to "Manage" section and set Credentials as None.
It solved my issue

查看更多
走好不送
5楼-- · 2019-03-20 15:47

In my case, I removed "COMMIT_EDITMSG" from .git folder and that helped me

my error msg "it did not exit cleanly (exit code 128) (109 ms @ 04-Nov-17 5:45:48 AM)"

so go to .git and find the file "COMMIT_EDITMSG" and delete it and commit your code

查看更多
登录 后发表回答