AI 生成的摘要
该文档介绍了如何使用git config设置用户名、邮箱和代理。用户可以通过以下命令设置全局用户名和邮箱:
```
git config --global user.name "你的用户名"
git config --global user.email "你的邮箱"
```
查看当前配置使用:
```
git config --list
```
启用代理的命令包括:
使用socks端口:
```
git config --global http.proxy 'socks5://127.0.0.1:7890'
git config --global https.proxy 'socks5://127.0.0.1:7890'
```
使用http端口:
```
git config --global http.proxy 'http://127.0.0.1:12346'
git config --global https.proxy 'http://127.0.0.1:12346'
```
查看当前代理设置:
```
git config --global --get http.proxy
git config --global --get https.proxy
```
取消代理设置:
```
git config --global --unset http.proxy
git config --global --unset https.proxy
```