1 Git下载网址:
选择好安装路径之后直接疯狂下一步即可
2 配置用户名、邮箱
- 用户名:git config –global user.name “cnlyuhan”
- 邮箱:git config –global user.emai cnlyuhan@163.com
3 配置代理
因为GitHub服务器在国外,所以要使用梯子,这里选择clash
3.1 打开clash
查看端口,由图可知,端口号为7890
3.2 windows系统设置
设置-代理服务器设置-手动
编辑代理服务器,并设置端口7890
3.3 Git中进行配置
打开git,输入命令git config –global http.proxy http://127.0.0.1:7890即可。
开启代理之后再访问如github这种外网他就会走这个端口进行访问,不在本地git中配置代理信息,最终就会报错。