首页 > 系统服务 > 详细

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

时间:2017-12-08 15:10:51      阅读:275      评论:0      收藏:0      [点我收藏+]
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

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

原文:http://www.cnblogs.com/huangpeng1990/p/8004954.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!