git修改文件权限方式
查看Repository中文件权限
git ls-tree HEAD
100644 blob 018321abfbff52d175a788597f5b5f3f17f67dc7 .gitignore
100644 blob 25b510b1a09ee7352eafa63f3d426614ae412c0d .travis.yml
100644 blob 8ca2f3ace8a0f1bb529a20a34a5642d877279b0d README.md
040000 tree 60ce8c15dd893ca46384ea80adb09437edea4a90 configuration
040000 tree 87284d5f9da1a605a5cf494a6802adb73277ec7f daas
040000 tree 42278d1d9e78df614767eeb433764966d9bfe521 docs
修改权限
sudo git update-index --chmod=+x daas/daas-report/setup/elasticsearch/setup.sh
权限修改后,相当于文件进入了index中。
提交修改
sudo git commit -m "revise permission access"
[dev 1dfbe6c] revise permission access
3 files changed, 0 insertions(+), 0 deletions(-)
mode change 100644 => 100755 daas/daas-report/setup/elasticsearch/setup.sh
mode change 100644 => 100755 daas/daas-report/setup/rest/setup.sh
mode change 100644 => 100755 daas/daas-starter/src/main/java/com/easemob/daas/gateway/server/ServerStarter.java
每天进步一点点