简体   繁体   English

git在cygwin中添加交互式挂起,而不是在cmd提示符中

[英]git add interactive hangs in cygwin, not in cmd prompt

I would report this directly to the project responsible, but it's hard knowing which project would be responsible (Cygwin, Git, or Git for Windows which creates the git.exe I am using. This isn't Cygwin git, it's Git for Windows.) 我会直接向负责的项目报告,但很难知道哪个项目会负责(Cygwin,Git或Git for Windows创建我正在使用的git.exe。这不是Cygwin git,它是Windows的Git。 )

Using the windows command prompt, git add -i [filename] works as expected. 使用Windows命令提示符, git add -i [filename]按预期工作。 There's a slight hang before it shows the prompt, but nothing to be concerned about. 在显示提示之前有一点点挂起,但没有什么值得关注的。

Using Cygwin (64), the same command just hangs indefinitely. 使用Cygwin(64),相同的命令只是无限期挂起。 After investigation I have determined that it launches a copy of perl.exe, which then maxes out a CPU but doesn't seem to return. 经过调查,我确定它会启动perl.exe的副本,然后最大化CPU但似乎没有返回。

Here is another Git/Cygwin/Perl question, but unfortunately doesn't directly solve my issue: cygwin cannot exec 'git-add--interactive' permission denied 这是另一个Git / Cygwin / Perl问题,但遗憾的是并没有直接解决我的问题: cygwin无法执行'git-add - interactive'权限被拒绝

As I explained in " Why is it that if you download Git 2.0 from the net, you always get a 1.9.4 installer package? ", you should not need cygwin anymore, you can use directly git bash , based on msys2. 正如我在“ 为什么如果你从网上下载Git 2.0,你总是得到一个1.9.4安装程序包? ”中解释的那样,你不应该再需要cygwin,你可以直接使用git bash ,基于msys2。

If you have to use Cygwin, make sure your PATH only references Cygwin, and not Git for Windows as well, or the latter could interfer with the former. 如果你必须使用Cygwin,请确保你的PATH仅引用Cygwin,而不是Git for Windows,否则后者可能会干扰前者。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM