fatal: cannot create directory at /root/wp-content/cache/page_enhanced/ No such a file or directory

后端 未结 5 1991
执笔经年
执笔经年 2021-01-11 16:02

After some pulling changes from server.

I can not any more push anything no matter if I try these:

  • git push or
5条回答
  •  迷失自我
    2021-01-11 16:08

    Could be several things depending on the OS of the machine you are running and version of git. With more detail I could be more specific.

    On Windows,it's either the permissions of the directories, or it's the length of the directories/paths. On Linux, it would be the permissions. I've also seen cases where the problem is non-allowed characters in directories or files.

    Your best bet to remove the directory is to clone it somewhere that works, like a linux box running root (or a vm or run cygwin), and add this to the .gitignore file: /wp-content/cache/.

    Then, to remove the already cached info, type: git rm -rf –-cached wp-content/cache and then commit and push.

提交回复
热议问题