执行:
git push
报错:
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
原因是我们公司的网被阿里墙了,解决方法:
1.直接换http协议推送
2.给ssh加一个代理
win10配置方法:
配置文件位置:C:/user/{username}/.ssh/config
如果config文件不存在就新建一个
# 配置代理 socket5 代理
ProxyCommand connect -S 127.0.0.1:10888 -a none %h %p
Host codeup.aliyun.com
User git
Port 22
Hostname codeup.aliyun.com
# 注意修改路径为你的路径
IdentityFile "C:\Users\69542\.ssh\id_rsa"
TCPKeepAlive yes
原文:https://www.cnblogs.com/zjhblogs/p/14807553.html