gitでpush したらエラーが出た
Fetching remote heads...
refs/
refs/tags/
refs/heads/
updating 'refs/heads/master'
from 0000000000000000000000000000000000000000
to 08df7f75bea5c36a7f20def94a2a5ef79a51e523
Unable to lock remote branch refs/heads/master
Updating remote server info
PUT error: curl result=22, HTTP code=403
fatal: git-http-push failed
サーバ側で作成されていたフォルダのパーミッションが悪い様子
[root@www7218uj hogehoge.git]# ls -l
total 32
- rw-rw-r-- 1 root apache 23 Jul 25 20:52 HEAD
drwxrwsr-x 2 root root 4096 Jul 25 20:52 branches
- rw-rw-r-- 1 root apache 126 Jul 25 20:52 config
- rw-rw-r-- 1 root root 73 Jul 25 20:52 description
drwxrwsr-x 2 root root 4096 Jul 25 20:52 hooks
drwxrwsr-x 2 root root 4096 Jul 25 21:29 info
drwxrwsr-x 4 root apache 4096 Jul 25 20:52 objects
drwxrwsr-x 4 root root 4096 Jul 25 20:52 refs
[root@www7218uj hogehoge.git]# chown -R apache:apache .
もう一回やってもまだエラーがでた
別問題みたいです。
$ GIT_SSL_NO_VERIFY=true git push
Fetching remote heads...
refs/
refs/tags/
refs/heads/
updating 'refs/heads/master'
from 0000000000000000000000000000000000000000
to 08df7f75bea5c36a7f20def94a2a5ef79a51e523
Unable to lock remote branch refs/heads/master
Updating remote server info
fatal: git-http-push failed
GIT_SSL_NO_VERIFY=true git push origin master
で解決した
初歩的で(;´д`)トホホ