git checkout error: unable to create file

后端 未结 5 660
清歌不尽
清歌不尽 2020-12-09 09:32

While cloning a git repository from Linux to a Windows system, I am getting the following error in checkout the phase:

$ git clone gituser@serveraddr:

5条回答
  •  难免孤独
    2020-12-09 10:16

    The only suggestion I saw, considering a similar issue, was:

    Workaround: use http://www.cygwin.com/

    Or at least check if a checkout in a git-bash session of msysgit works better.


    Update May 2015 (2 years later):

    Note: the latest 2.4.1 git-for-windows proposes:

    core.longpaths::
    

    Enable long path (> 260) support for builtin commands in Git for Windows.
    This is disabled by default, as long paths are not supported by Windows Explorer, cmd.exe and the Git for Windows tool chain (msys, bash, tcl, perl...).
    Only enable this if you know what you're doing and are prepared to live with a few quirks.

提交回复
热议问题