In my case, I used the git folder with bad permissions, which is stored on the same drive as the repository, but it can be the same with ssh, even if you use an authorized user to log in.
Then check if you have the correct write permissions in the remote repo.
Example:
Initiation of local and distant repo
git init /tmp/src git init --bare /tmp/dst cd /tmp/src
Adding a remote repo to the source
src > git remote add dest /tmp/dst
Imitation problem
src > chmod -R 555 /tmp/dst
Adding a fake file and sending it
src > touch a && git add a && git commit -m 'demo' src > git push --set-upstream dest master src > git push Counting objects: 3, done. Writing objects: 99% (2/3), 202 bytes | 0 bytes/s.
Bastard hanging
Decision
src > chmod -R 775 /tmp/dst
Naewis Jun 20 '18 at 16:02 2018-06-20 16:02
source share