windows上git bash中chmod +x不起作用

在 windows 上的 git bash 中执行下面的 chmod 命令

$ chmod +x test.sh

执行后对应的文件依然是不可执行的

-rw-r--r-- 1 admin 197121   0 5月  16 11:57 test.sh

请问如何解决?


慕村225694
浏览 1816回答 1
1回答

慕盖茨4494581

git update-index --chmod=+x <your_file>在 Windows 平台上需要使用上面的命令把文件标记为可执行
打开App,查看更多内容
随时随地看视频慕课网APP