Domanda

I am on Windows 7, 64 bit, and have installed msysgit to work with my github repositories. On my old laptop (32 bit, also windows 7), git ran with no problems, but now git bash runs slowly (I type a command and it takes a couple of seconds for it to actually show up, character by character). When I try to push changes it works intermittently, but more often than not a dialog box comes up saying that "ssh.exe has stopped working...". I click cancel on that, and retry the command. Eventually, it works, asking for my authentication code. Once it gets to that step, it pushes without issue. It's just getting to that step that is the issue.

So basically, my problems are:

  • git runs slowly on most commands, even typing them in is slow before I execute the command
  • git bas (ssh.exe) stops working when pushing, works intermittently.

I have reinstalled windows since this issue popped up and that did not fix it.

È stato utile?

Soluzione

Regarding the slow typing in git bash and cmd.exe, these other questions might have your answers:

The first has a solution when you're running a Lenovo Laptop (are you running on one by any chance?).

Since you indicated that even after a Windows re-install you're having the same issue, I would think it's related to hardware or some service or piece of software installed for this specific hardware.

I would also try running git bash as Administrator and see if that makes a difference.

Your SSH issue could be dependent on the other one, so I would solve the slow typing issue first.

Altri suggerimenti

Intermittent push, fetch and other remote commands are an indication of not enough concurrent ssh connections allocated in whatever your central repo is hosted on. Bump up the configuration to allow more concurrent secure connections. This is especially true if you are using something like gitolite or gitosis which use one user to allow access to all git users and differentiate the user based upon the public key provided.

I have the same configuration: Win 7 64bit, Msysgit and github. I'we faced the "ssh.exe has stopped working" problem as you did, when pushing to github.

I solved it by using another ssh.exe: I installed Cygwin, and copied over all the binaries to the git's binary folder.

I think that if during the msysgit installation, you specify an external ssh client to use, you can avoid this hack, but at the moment this seemed like a good idea.

I also faced this issue. ssh.exe, the one which git was using, was also being used by OpenSSH which I was running to connect to my US office. I've also installed TortoiseSVN which has its own ssh.exe.

I uninstalled Git and while re-installing I configured Git to use the ssh.exe that's part of TortoiseSVN, and this problem went away.

I faced the same issue today. Disabled the antivirus and it worked perfectly.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top