Git Symlinks in Windows

前端 未结 13 1299
执念已碎
执念已碎 2020-11-22 09:23

Our developers use a mix of Windows and Unix based OS\'s. Therefore, symlinks created on Unix machines become a problem for Windows developers. In windows (msysgit), the sym

13条回答
  •  情歌与酒
    2020-11-22 09:24

    You can find the symlinks by looking for files that have a mode of 120000, possibly with this command:

    git ls-files -s | awk '/120000/{print $4}'
    

    Once you replace the links, I would recommend marking them as unchanged with git update-index --assume-unchanged, rather than listing them in .git/info/exclude.

提交回复
热议问题