Here is a little bit background:
- I run Win7
- I have private git repo and installed Github for Windows
- I didn't like the Github for Windows client (lack capabilities). I installed TortoiseGit for Windows (still keep Github for Windows)
- I followed steps here exactly http://dancingmonkeysaccelerated.blogspot.com/2012/03/git-for-windows-with-tortoisegit-and.html
- I can get log and commit local
- Then I Push
- However it gave error
git did not exit cleanly (exit code 128)
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?
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.
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.
In "code pushing" popup, go to "Manage" section and set Credentials as None.
It solved my issue
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