好吧,这很奇怪。首先,这是在最新的 cygwin 上运行的 mintty,从 cygwin 的 setup.exe 中提取 git。我正在运行 zsh。
$ git clone https://<user>@<domain>/<repository>/ ~/src/project/dev
Initialized empty Git repository in /cygdrive/c/src/project/dev/.git/
Password: <actual password in plain text appears>
# Nothing happens...
^C
$ <password text that I just typed>
zsh: command not found: <same password text>
Run Code Online (Sandbox Code Playgroud)
这里发生了什么?这是终端问题、shell 问题、git 问题还是 cygwin 问题?
更新:是的,我正在运行 Cygwin git 版本,而不是 Windows 版本:
$ which git
/usr/bin/git
$ git --version
git version 1.7.1
$ /cygdrive/c/Program\ Files\ \(x86\)/Git/bin/git.exe --version
git version 1.7.0.2.msysgit.0
Run Code Online (Sandbox Code Playgroud)