![](/img/trans.png)
[英]fatal: unable to access 'https://github.com/MyName/MyRepo.git/': The requested URL returned error: 403
[英]fatal: unable to access 'http://repo.***.com/***/***.git/': The requested URL returned error: 504
我可以通过浏览器访问自托管的 Git 存储库。 但是,命令行上的git push
会引发此错误:
$ git push origin m26.12.2--insert-auto-logic
fatal: unable to access 'http://repo.***.com/***/***.git/': The requested URL returned error: 504
到目前为止,尝试了这些没有任何效果:
1.1.1.1
和8.8.8.8
proxychains
上使用tor
和代理链还有什么我可以做的吗? 也许,我如何使用这种上传方法将我的提交推送到远程自托管 Git? 在浏览器上浏览远程存储库时,我可以看到新建/上传按钮:
尝试torsocks
torsocks git push <repository> <branch>
要检查 tor 是否工作:
journalctl -exfu tor
在日志中,检查Bootstrapped 100%
是否。 如果是这样,什么也不做,否则:
obfs4
sudo <your-favorite-editor> /etc/tor/torrc
torrc
的末尾UseBridges 1
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy
Bridge obfs4 IP:PORT HASH-OF-YOUR-OBFS4-BRIDGE
sudo systemctl restart tor.service
journal -exfu tor
Bootstrapped 100%
,什么也不做,否则使用另一个 Bridge(s)通过在 Windows 10 上使用系统范围的 VPN解决了问题。不知道为什么。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.