分类 Git 下的文章

git 设置用户名邮箱:

对当前项目生效:

git config user.name 'your username'
git config user.email 'your email'

对全局生效,加上 --global:

git config --global user.name 'your username'
git config --global user.email 'your email'

设置git的代理:

对当前项目生效:

git config http.proxy socks5h://localhost:1080

socks5h 远端 dns 解析,socks5 本地 dns 解析。

对全局生效,加上 --global:

git config --global http.proxy socks5h://localhost:1080

- 阅读剩余部分 -