when I tried to change the permission of the file from 644 to 700 in git, it doesn't take effect. It set the permission to 755 automatically.
Git config filemode enabled:
core.filemode=true
Git log :
[root@1123 test]# git add .
[root@1123 test]# git commit -m "test"
[master (root-commit) 3111b80] test
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 welcome.sh
[root@1123 test]# 
[root@1123 test]# 
[root@1123 test]# chmod 700 welcome.sh 
[root@1123 test]# git diff
diff --git a/welcome.sh b/welcome.sh
old mode 100644
new mode 100755
[root@1123 test]# 
Please someone help on this. Thanks.
