码迷,mamicode.com
首页 > 系统相关 > 详细

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

时间:2017-12-08 16:42:34      阅读:218      评论:0      收藏:0      [点我收藏+]

标签:com   文件   index   shell   date   hang   file   权限   files   

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

标签:com   文件   index   shell   date   hang   file   权限   files   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!