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 --get http.proxy
git config --global --get https.proxy
```
若需取消代理設置,則使用:
```
git config --global --unset http.proxy
git config --global --unset https.proxy
```