Git for Windows in Cygwin - What are known problems?

79 views
Skip to first unread message

Lars Schneider

unread,
Jul 24, 2016, 7:33:28 AM7/24/16
to git-for-windows
Hi,

is it OK to use Git for Windows in an cygwin environment? I think I remember that this would cause problems (e.g. with paths) but I can't find a source for this statement.

Thanks,
Lars

Johannes Schindelin

unread,
Jul 24, 2016, 8:48:43 AM7/24/16
to Lars Schneider, git-for-windows
Hi Lars,
The most obvious problem is that Git for Windows' MSYS2 runtime (used e.g.
by the pager, less.exe) is incompatible with Cygwin's runtime (used e.g.
by Cygwin's version of MinTTY). That means that paging won't work.

There are other, related problems that make the whole endeavor rather
finicky.

If you already use Cygwin, it is best to stick with Cygwin's Git.

Ciao,
Dscho

P.S.: Since Git for Windows uses nanosecond-precision timestamps, I also
recommend against mixing Cygwin Git usage with Git for Windows usage on
the same work trees: the index would always be mistaken as out-of-date,
incurring a *complete* re-checksumming, even of a completely up-to-date
work tree.
Reply all
Reply to author
Forward
0 new messages