fatal: detected dubious ownership in repository at ‘/var/www/html/tv-web‘To add an exception for this directory, call: This message from Git indicates that it detected a potential security risk due to the repository’s ownership or permissions. This can happen if the repository is owned by a different user than the one running the Git command, often when […]
Tag: git
fatal: unable to access git url:Recv failure: Connection reset by peer.
😀 fatal: unable to access ‘github url ‘: Recv failure: Connection reset by peer 網絡解決方案: 👉 New error: could not lock config file /home/ubuntu/.gitconfig: Permission denied Hi,Hi ,it is not working .. 最終發現使用curl 命令請求該git url的時候,出現: 查看git url的主機,發現請求到了giturl所在的服務器,但是顯示的是nginx的http code :499。 以前一直是正常的,但是最近出现的问题,检查了服务器端,目前并没有变化的配置,各种参数修改,发现并不行、由于Git服务器放在公司,通过域名供应商的ddns映射到公司的内网服务器上,我看有的用户反馈是ISP可能阻断这种git,curl,wget的http/https的请求,那如果真的是这种情况,就只能使用ssh协议进行clone代码了。 如下的文章: Nginx状态码499-错误分析 大家抄來抄去的,餅不符合所有的人。 我的问题是出现在阿里云的服务器上,比如:HongKong,华南的Linux服务器,在使用curl、wget、git请求git仓库的时候,发现都是Connection reset by peer 无奈,只能问阿里云的工程师。