When using gitoite to manage git library, an error is reported when using the administrator account to perform git pull operation on gitolite admin warehouse
[drpeng@srvser gitolite-admin]$ git pull
error: cannot open .git/FETCH_HEAD: Permission denied
It literally means . Git/fetch_Head
this file does not have permission. The permission to enter the. Git folder and view this file is really wrong. That’s a good solution
[drpeng@srvser gitolite-admin]$ cd .git
[drpeng@srvser .git]$ ll -h FETCH_HEAD
Totally 48K
**-rw-r--r-- 1 root root 0 Sep 7 2016 FETCH_HEAD**
[drpeng@srvser .git]$ exit
logout
[root@srvser git]# cd /home/drpeng/git-13/gitolite-admin/.git
[root@srvser .git]# chown -R drpeng.drpeng FETCH_HEAD
[root@srvser .git]# su - drpeng
[root@srvser git]# cd /home/drpeng/git-13/gitolite-admin/
[drpeng@srvser git-13]$ cd gitolite-admin/
[drpeng@srvser gitolite-admin]$ git pull
remote: Counting objects: 509, done.
remote: Compressing objects: 100% (404/404), done.
remote: Total 499 (delta 125), reused 0 (delta 0)
Receiving objects: 100% (499/499), 53.32 KiB, done.
Resolving deltas: 100% (125/125), done.
Above, the problem is solved~
Read More:
- Fetch Error: Failed to execute ‘fetch’ on ‘Window’: Request with GET/HEAD method cannot have body
- How to Solve Vue Error: EACCES: permission denied
- Android 10 open file exception open failed: eacces (permission denied) android:requestLegacyExternalStorage= “true“
- ERROR: Permission to .git denied to. [How to Solve]
- Springboot + Git Error: detached HEAD [How to Solve]
- How to Solve Git error: out of memory
- Git: How to Solve Error: Please commit your changes or stash them before you merge.
- [Solved] Vscode Connect to the remote server error: permission denied (public key)
- How to Solve Git submodule update error
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- socket java.net.BindException: bind failed: EACCES (Permission denied)
- ./get_datasets.sh Error: permission denied [How to Solve]
- Run-time error “70“:Permission denied [How to Solve]
- Git Push Error: error: failed to push some refs… hint: Updates were rejected because the remote…
- How to Solve Git Error: error: failed to push some refs to……
- [Solved] Gerrit Error: Permission denied publickey
- [Solved] failed (13: Permission denied) while reading upstream
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied
- [Solved] Docker startup container error: permission denied””: unknown.