git-server-docker icon indicating copy to clipboard operation
git-server-docker copied to clipboard

[solved] permission Error when trying to do: git push

Open brownman opened this issue 6 years ago • 5 comments

host# git push origin master result: remote: error: insufficient permission for adding an object to repository database ./objects

fix: /git-server/repos # sudo chmod -R ug+w .;

brownman avatar Aug 08 '17 10:08 brownman

Thanks for share!

jkarlosb avatar Aug 08 '17 10:08 jkarlosb

Thanks

Mmmmabury avatar Feb 08 '19 04:02 Mmmmabury

Thanks

children1987 avatar Aug 25 '20 10:08 children1987

I'm not sure that is the right solution. There is a similar command in the start.sh script So restarting the container might have a similar effect. I wonder whether it is related to how th git repo is copied into place while the docker service is running.

markNZed avatar Aug 31 '21 14:08 markNZed

the same problem comes to me I try chmod -R ug+w . but fail chmod -R 777 . will work

lanqsh avatar Dec 28 '21 03:12 lanqsh