markdown “无法取消链接,权限被拒绝”错误

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown “无法取消链接,权限被拒绝”错误相关的知识,希望对你有一定的参考价值。

In this case, the specific error was:
```
$ git pull
error: unable to unlink old 'sites/default/default.settings.php': Permission denied
```
I opened the sites directory and saw the following:
```
$ lll
  rwxr-xr-x  noxlady  staff  160 B    Tue Sep  4 13:34:39 2018  M?    all/
  r-xr-xr-x  noxlady  staff  192 B    Tue Sep  4 13:40:49 2018   ✓    default/
  rw-r--r--  noxlady  staff  904 B    Tue Sep  4 13:34:38 2018   ✓    README.txt
  rw-r--r--  noxlady  staff    2 KiB  Tue Sep  4 13:34:39 2018   ✓    example.sites.php
  ```
So I don't have write permissions for the "default" directory...
```
$ chmod 755 default 
```

And now I see:
```
$ lll
  rwxr-xr-x  noxlady  staff  160 B    Tue Sep  4 13:34:39 2018  M?    all/
  rwxr-xr-x  noxlady  staff  192 B    Tue Sep  4 13:40:49 2018   ✓    default/
  rw-r--r--  noxlady  staff  904 B    Tue Sep  4 13:34:38 2018   ✓    README.txt
  rw-r--r--  noxlady  staff    2 KiB  Tue Sep  4 13:34:39 2018   ✓    example.sites.php
  ```
  
Alas, the failed git pull left a whole bunch of clutter in my folder, so I need to `git reset --hard HEAD` and  `git clean -f -d` to clear out all the changes...

**Now** I can `git pull` successfully!

以上是关于markdown “无法取消链接,权限被拒绝”错误的主要内容,如果未能解决你的问题,请参考以下文章

markdown 错误:使用GraphQL接口时的启发式错误

链接的 Markdown 错误包含字符“_”

markdown Laravel错误

markdown phpMyAdmin 404错误

markdown flex增长错误

markdown Readline错误?