设置代理:
git config --global http.proxy socks5://127.0.0.1:10808 git config --global https.proxy socks5://127.0.0.1:10808
查看代理:
git config --global --get http.proxy git config --global --get https.proxy
取消代理:
git config --global --unset http.proxy git config --global --unset https.proxy
如果你不知道现在本地Git用的帐号是什么,你可以输入
git config user.name 查看用户名
git config user.email 查看用户邮箱
修改用户名和邮箱的命令
git config --global user.name "Your_username"
git config --global user.email "Your_email"