Git 配置管理
$ git config --list
# 查看git用户名、密码、邮箱的配置
$ git config user.name
$ git config user.password
$ git config user.email
# 设置/修改 git用户名、密码、邮箱的配置
$ git config user.name "netkiller"
$ git config user.password "passw0rd"
$ git config user.email "netkiller@msn.com"
# 设置/修改 git用户名、密码、邮箱的全局配置
$ git config --global user.name netkiller
$ git config --global user.password passw0rd
$ git config --global user.email "netkiller@msn.com"
# Window 平台
PS C:\Users\neo> git config --global user.name Neo
PS C:\Users\neo> git config --global user.email "netkiller@msn.com"
PS C:\Users\neo> git config --list
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
http.sslbackend=openssl
http.sslcainfo=C:/Program Files/Git/mingw64/etc/ssl/certs/ca-bundle.crt
core.autocrlf=true
core.fscache=true
core.symlinks=false
pull.rebase=false
credential.helper=manager
credential.https://dev.azure.com.usehttppath=true
init.defaultbranch=master
user.name=Neo
user.email=netkiller@msn.com
PS C:\Users\neo>