Git did not exit cleanly exit code 128 что за ошибка
Problem Description:
A new space after local git repository, intends to abnormal, specific abnormality as follows when the remote repository to local code Pull:
git.exe pull —progress -v —no-rebase "origin" master
POST git-upload-pack (275 bytes)
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (6/6), done.
warning: no common commits
remote: Total 7 (delta 0), reused 3 (delta 0), pack-reused 0
From https://github.com/Jackson-AndyLau/CMSManager
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
fatal: refusing to merge unrelated histories
git did not exit cleanly (exit code 128) (4469 ms @ 2018-07-01 11:13:35)
Solution:
On this issue, approximate solutions, core solutions on a problem encountered in the content are the same"Git did not exit cleanly (exit code 1) solution."。
1, according to error contents suggest that we need to remove the first local git repository configuration files out to form an empty folder, everything git folders do not appear, and then directly from the remote repository "Git Clone" to project, As shown below:
2, directly from the Clone remote GitHub project, found the Clone successful, as shown below:
3, after Clone project down from the remote, as shown below:
Well, the solution with regard to git did not exit cleanly (exit code 1) would be written here, if you have any questions or encounter any questions please scan code to ask questions, you can give me a message oh, I will be 11 in detail the answer.
Twisters: "common learning and common progress," I hope you lot of attention CSND the IT community.
Tortoise Git seems to connect then refuse my connection: git did not exit cleanly (exit code 128)
I had been using Tortoise Git from my windows PC to connect to GitHub as well as a local server. One of my OS drives failed (raid 0) so now I’m tasked with getting it back up to speed.
I’ve been trying to connect via ssh for most of the morning but keep getting the following error code:
I’m fairly certain this isn’t a credentials issue as I can connect via terminal on both my Linux box and MacBook. The process prompts for my password then fails with the following error:
It is a git repository and I just cloned it on my Mac. I’m at a loss, any ideas?
TortoiseGit trouble: git did not exit cleanly (exit code 128)
Every time git.exe is executed it returns an exit code (cf. Does git return specific return error codes?).
An exit code of 0 indicates success.
In the StackOverflow post the exit code 128 is mentioned, which indicates an error:
The (exit code 128) is some kind of «unexpected error» (cf. https://stackoverflow.com/a/8059956/3906760). What it means is highly dependant on the git command executed and the output it issued. Therefore, there can’t be a single easy and short answer on how to solve this.
The following post contains a specific answer which is related to the push case and at the end a more generic answer (If this doesn’t help section).
Answer for the case of the initial Stackoverflow post
The following answer is based on the fact, that git.exe was executed to run a push.
Using TortoiseGit with SSH
Here one needs to differentiate between OpenSSH and PuTTY. (See here)
OpenSSH
In order to use OpenSSH you have to set ssh.exe as «SSH client» on TortoiseGit settings -> Network.
OpenSSH uses %HOME%/.ssh/id_rsa(.pub) files for their public/private keys by default, which must be created by OpenSSH ssh-keygen and not PuTTYGen (PuTTY keys have a different format, however, can also be converted using PuTTYGen).
If %HOME% is not set, TortoiseGit will set it automatically, if you manually set %HOME% please make sure it is valid (you might have to use slashes instead of backslashes).
This is recommended for people who already have their OpenSSH keys.
PuTTY
PuTTY, which is to be preferred on Windows, requires that public/private keys are created using PuTTYGen (which is shipped with TortoiseGit).
TortoiseGitPlink.exe needs to be selected as ssh client on TortoiseGit settings -> Network — that should be the default. However, there is no default place for the public/private keys and, thus, these have to be configured. There are (at least two ways to do that):
Configure your key to be the default key in PuTTY based applications. For this, open PuTTY (which is not shipped with TortoiseGit and has to be downloaded separately). Then go to the Connection-> SSH -> Auth configuration page and select your .ppk file as «Private key for authentication», go back to the «Session» configuration page, select «Default Settings» there and hit save. -> From now on PuTTY and PLink will use this key for authentication.
In order to make TortoiseGit load a private key for using with PuTTY one has to configure it.