Skip to content

Instantly share code, notes, and snippets.

@moenn
Last active May 29, 2019 10:02
Show Gist options
  • Save moenn/f0453df29dcf844af705b5e0e544bb79 to your computer and use it in GitHub Desktop.
Save moenn/f0453df29dcf844af705b5e0e544bb79 to your computer and use it in GitHub Desktop.
git 常用配置

设置用户名和邮箱

git config --global user.name "John Doe"
git config --global user.email [email protected]

添加 socks5 代理

git config --global http.proxy "http://127.0.0.1:1080"

git config --global https.proxy "https://127.0.0.1:1080"

取消 socks5 代理

git config --global --unset http.proxy

git config --global --unset https.proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment