我使用:
git config --list
我想再找到一个user.naemail=xb1
并删除它。
以下是命令的输出:
$ git config --list
core.symlinks=false
core.autocrlf=true
core.fscache=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
help.format=html
rebase.autosquash=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt
credential.helper=manager
user.email=xxx@163.com
user.name=xxx
user.naemail=xb1```
常规命令是git config --unset
cd /path/to/my/repo
git config --unset user.naemail
检查设置的来源:
git config -l --show-origin
如果它来自 ~/.gitconfig,你需要做:
git config --global --unset user.naemail