WSL2中使用VS Code提交代码失败[info] fatal: unable to access ‘https://github.com/WEIXUEP/palace.git/’:
解决:
在WSL2的命令行中设置代理:
git config --global https.proxy http://192.168.8.5:7890
git config --global http.proxy http://192.168.8.5:7890
代理地址和端口来自CLASH:
本地VS code会远程链接连接到WSL2的存储空间,如果上传windows本地代码,只需要打开Clash的系统代理就行。但是如果需要上传WSL2环境中的代码,需要如上一样手动设置git的config。