为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

慕村225694 2018-08-16 16:09:47
在 windows 上的 git bash 中执行下面的 chmod 命令$ chmod +x test.sh执行后对应的文件依然是不可执行的-rw-r--r-- 1 admin 197121   0 5月  16 11:57 test.sh请问如何解决?
查看完整描述

1 回答

?
慕盖茨4494581

TA贡献1850条经验 获得超11个赞

git update-index --chmod=+x <your_file>

在 Windows 平台上需要使用上面的命令把文件标记为可执行


查看完整回答
反对 回复 2018-09-04
  • 1 回答
  • 0 关注
  • 1813 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信