Running Git through Cygwin from Windows

前端 未结 4 1628
孤独总比滥情好
孤独总比滥情好 2020-12-02 11:30

I have started using Cygwin recently for other purposes and already have Git installed on my PC. I understand I can run the executable and install Git into Cygwin, but since

4条回答
  •  感情败类
    2020-12-02 11:53

    I can tell you from personal experience this is a bad idea. Native Windows programs cannot accept Cygwin paths. For example with Cygwin you might run a command

    grep -r --color foo /opt
    

    with no issue. With Cygwin / represents the root directory. Native Windows programs have no concept of this, and will likely fail if invoked this way. You should not mix Cygwin and Native Windows programs unless you have no other choice.

    Uninstall what Git you have and install the Cygwin git package, save yourself the headache.

提交回复
热议问题