我可以通过浏览器访问自托管的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
tor
和proxychains
我还有什么可以做的吗?也许,我该如何使用this upload approach将提交推送到远程自托管的Git?在浏览器上浏览远程存储库时,我可以看到“新建/上传”按钮:
答案 0 :(得分:1)
尝试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%
,请什么都不做,否则请使用其他网桥答案 1 :(得分:0)
在Windows 10上使用a system-wide VPN解决了问题。不知道为什么。