मैं Git संस्करण 1.5.6.3 का उपयोग कर रहा है, और यह Git की सूचना नहीं है एक फ़ोल्डर के मोड में परिवर्तनगिट हैंडल फ़ोल्डर अनुमति कैसे करता है?
#create a test repository with a folder with 777 mode
:~$ mkdir -p test/folder
:~$ touch test/folder/dummy.txt
:~$ cd test
:~/test$ chmod 777 folder/
#init git repository
:~/test$ git init
Initialized empty Git repository in ~/test/.git/
:~/test$ git add .
:~/test$ git commit -m 'commit a directory'
Created initial commit 9b6b21a: commit a directory
0 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 folder/dummy.txt
#change folder permission to 744
:~/test$ chmod 744 folder/
:~/test$ git status
# On branch master
nothing to commit (working directory clean)
क्या 04000
के लिए खड़े करता है?
:~/test$ git ls-tree HEAD folder
040000 tree 726c1d5f0155771348ea2daee6239791f1cd7731 folder
क्या यह सामान्य व्यवहार है?
मैं फ़ोल्डर मोड में परिवर्तन कैसे ट्रैक कर सकता हूं?
संबंधित: http://stackoverflow.com/questions/737673/how-to-read-the-mode-field-of-git-ls-trees-output –