我使用git协议构建了一个git远程存储库。 我打开了tcp 9418端口,并将git-daemon-export-ok文件添加到git目录。
然后运行:$ git daemon --detach --verbose --export-all --base-path = / opt / git / --reuseaddr --enable = receive-pack / opt / git /
Pa -A看到了git-daemon进程, 我非常成功, 然后我执行:$ git config daemon.receivepack true 但是我不能推。
我重新启动了git-daemon,但仍然无法推送
以下是终端信息:
chezixin@czxMAC:~/test/project$ git push
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 306 bytes | 306.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: error: insufficient permission for adding an object to repository database ./objects
remote: fatal: failed to write object
error: remote unpack failed: unpack-objects abnormal exit
To git://centos76-ali/project.git
! [remote rejected] master -> master (unpacker error)
error: failed to push some refs to 'git://centos76-ali/project.git'
chezixin@czxMAC:~/test/project$