Git and nasty “error: cannot lock existing info/refs fatal”

后端 未结 24 1471
礼貌的吻别
礼貌的吻别 2020-11-30 15:58

After cloning from remote git repository (at bettercodes) I made some changes, commited and tried to push:

git push origin master

Errors

24条回答
  •  孤独总比滥情好
    2020-11-30 16:38

    This is how it works for me.

    1. look up the Apache DAV lock file on your server (e.g. /var/lock/apache2/DAVlock)
    2. delete it
    3. recreate it with write permissions for the webserver
    4. restart the webserver

    Even faster alternative:

    1. look up the Apache DAV lock file on your server (e.g. /var/lock/apache2/DAVlock)
    2. Empty the file: cat /dev/null > /var/lock/apache2/DAVlock
    3. restart the webserver

提交回复
热议问题