Can I use mSysGit and Cygwin's git?

后端 未结 7 2191
野性不改
野性不改 2020-12-16 21:28

After migrating to Windows, I\'m using msysgit with its included bash shell, and that\'s working well for me. But I have issues: our ant build process won\'t run in that sh

7条回答
  •  误落风尘
    2020-12-16 22:09

    I set core.autocrlf to false in msysgit and took whatever cygwin installed by default.

    I had problems checking out from a command prompt using cygwin tools and the mingw tools shipped with msysgit, because of apparent changes in file modes (755 appeared to change to 644 in every file). This appears to be an issue regarding the executable bit. git reset didn't help.

    However, doing the initial clone from the msysgit GUI window did not produce this problem, and I now appear to be free to use cygwin either from its own bash shell or a command prompt, or msysgit from its bash shell. In other words everything seems happy.

    So bottom line if you're seeing every file appearing to change and line-endings doesn't appear to be the cause of the problem, try checking out from the GUI.

提交回复
热议问题