Error in Git pull code:
error: cannot open .git/FETCH_HEAD: Permission denied
The reason:
The current logged in user does not have permission to modify the directory.
Solutions:
Modify the current directory permissions
1. Whoami view the current logged in user
error: cannot open .git/FETCH_HEAD: Permission denied
The reason:
The current logged in user does not have permission to modify the directory.
Solutions:
Modify the current directory permissions
1. Whoami view the current logged in user
xxx$ whoami
Assume the above query login account as: Zhangsan
2. PWD view current directory
xxx:$ pwd
Suppose the query result of the above directory is: /Users/work
3. Modify permissions for Sudo Chown
xxx$ sudo chown -R zhangsan:admin /Users/work
Sudo Chow-r Current user: Admin Current directory
Read More:
- [git] report error and solve cannot open.git/fetch_ HEAD: Permission denied
- Unhandled rejection Error: EACCES: permission denied, open ‘/Users
- Android has applied for permission and still prompts open failed: eacces (permission denied)
- Solve the problem of dynamically applying for permission, but still reporting an error of open failed: eacces (permission denied)
- Git error: no permission remote: error: unable to unlink old ‘ README.md ‘ (Permission denied)
- move_uploaded_file() failed to open stream: Permission denied
- git pull error: unable to unlink old (Permission denied)
- TypeError: Failed to execute ‘fetch‘ on ‘Window‘: Request with GET/HEAD method cannot have body.
- php open(/var/lib/php/session/sess_4ofxxx, O_RDWR) failed: Permission denied (13)
- Permission error: [errno 13] permission denied: ‘… ” xxx.pyd ‘
- session_ start(): open(SESSION_ FILE, O_ Rdwr)) failed: processing of permission denied (13)
- PHP error Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0 Fatal error:
- Beeline connection hive2 reports an error permission denied
- Solutions for permission denied
- Unhandled rejection Error: EACCES: permission denied
- Mac installation software, error permission denied @ unlink_ internal
- Solution to permission denied
- Error: Command failed: git describe –always fatal: Not a valid object name HEAD
- Ioerror: [errno 13] permission denied
- Python error: permissionerror: [errno 13] permission denied solution details