Git给添加shell执行权限提交repo


git ls-files --stage
100644 f23de29bb2d1d6434b8b29ae775ad8c2e48c5391 0       test.sh

644权限,默认不能执行

git update-index --chmod +xtest.sh

git ls-files --stage
100755 f23de29bb2d1d6434b8b29ae775ad8c2e48c5391 0       test.sh

现在文件是755可执行权限.

git commit -m "xxx!"

 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100755 test.sh


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM