美文网首页git
git 增加文件的可执行权限

git 增加文件的可执行权限

作者: 谢昆明 | 来源:发表于2020-02-26 09:59 被阅读0次
查看当前权限 100644
[astute@astute Unix-Network-Programming]$ git ls-files --stage configure
100644 87004a5a1784f87e80ad897332f1e6723928f413 0       configure

增加可执行权限
[astute@astute Unix-Network-Programming]$ git update-index --chmod +x configure

查看当前权限 100755 
[astute@astute Unix-Network-Programming]$ git ls-files --stage configure
100755 87004a5a1784f87e80ad897332f1e6723928f413 0       configure

打赏

如果这篇文章解决了您的问题,让我买根烟抽抽。

支付宝.jpg 微信.jpg

相关文章

网友评论

    本文标题:git 增加文件的可执行权限

    本文链接:https://www.haomeiwen.com/subject/rlapchtx.html