Git 出现 unable to access ... when receiving data from the peer 的解决方案
错误示例
fatal: unable to access 'https://github.com/ ***** .git/': Failure when receiving data from the peer
原因
Clash设置了系统代理,但是Git并没有使用系统代理的配置。
解决方案
最简单的解决方式是将Clash(Windows)设置为虚拟网卡模式(TUN);
Clash(macOS)设置为增强模式(Enhanced Mode)。