3

This is something of a mystery. I just installed Cygwin on my Windows machine (Windows 8). The very first thing I tried was git clone (I was cloning a private repository using ssh, rather than anything on github). It announced cloning into blah-blah-blah, and then just froze. I waited several minutes, and nothing. I looked at the directory, and there was a directory created with the .git subdirectory, but nothing else. It never got around to asking for my password.

I am able to use git from a Windows command prompt, and the git shell that I downloaded from the Git website works. So there's no problem with my git connection. It's just git under Cygwin.

You might ask why I'm bothering, if I can use git outside of Cygwin. It's just because I'm trying to debug some git hook scripts that I wrote, and I want them to be usable by someone using git under Cygwin. But I can't even get to the point where the git hooks are called.

6
  • It's not true that git is completely broken under Cygwin. If I clone a repository outside of Cygwin, I can do git checkout, git status, git branch. But git clone and git commit just hang. So maybe that's a clue of some sort. Commented Jun 22, 2015 at 18:19
  • Okay, so the reason that git commit was hanging was simple: I had not specified a default editor for commit messages. You would think that that would cause error message, rather than causing git to freeze, but... That still leaves the git clone mystery. There might be something similar going on with settings. Commented Jun 22, 2015 at 19:07
  • Aha! Yet another clue: If I try to clone a git project that doesn't require a password, that works. So somehow, the problem is with the code that creates the prompt for a password Commented Jun 22, 2015 at 19:29
  • same problem here, thanks for you investigation. is there a chance you are still online sometimes and have found anything more about this issue? Commented Mar 20, 2016 at 20:16
  • Hi, Dominik. Unfortunately, I didn't get any further on this. I stopped using Cywin for git, and instead have been using the git bash shell. So this is unresolved. Commented Mar 22, 2016 at 3:14

1 Answer 1

0

I didn't get any further on this. I stopped using Cywin for git, and instead have been using the git bash shell

I usually make sure to use a separate PATH when using cygwin.
If I use Git, I make sure to reference a simplified PATH.

In both instance, you need to make sure $HOME reference the right folder, as credentials can be stored there by default (~/.ssh for your SSH keys for instance)

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.