配置用户信息

  1. git config --global user.name "LinHaiming"
  2. git config --global user.email lhming23@outlook.com
  3. # 检查配置信息
  4. git config --list
  5. # 长期存储 http/https 密码
  6. git config --global credential.helper store

github 走代理

  1. #只对github.com
  2. git config --global http.https://github.com.proxy socks5://127.0.0.1:10808
  3. #取消代理
  4. git config --global --unset http.https://github.com.proxy