2017-02-28 42 views
2

當我這樣做:混帳克隆複製-FD權限被拒絕

git clone [email protected]:xxx/xxx.git 

有一個錯誤:

Cloning into 'xxx'... 
error: copy-fd: write returned Permission denied 
fatal: cannot copy '/usr/share/git-core/templates/description' to '/mnt/wk01/xxx/.git/description': Permission denied 

誰能幫我?

回答

2

的權限問題可能不會在目標文件夾/mnt/wk01/xxx/,但在源文件夾usr/share/git-core/templates/description

由於mentioned here

Package: git-core, Version: 1.5.6.5

The file permissions of files placed in /usr/share/git-core/templates are wrong now. They are not readable for everyone, so command "git init" fails with message:

fatal: cannot copy /usr/share/git-core/templates/description to ... 

chmod a+r for all files in templates solves this issue.

確保upgrade to the latest git version through git-core ppa

+0

感謝您的幫助。 – hexilon

相關問題