当安装了Git,需要自定义配置变量来添加您的个人信息。可以使用Git工具(叫作git config
)和-l
选项(此选项提供当前配置)来获取和设置配置变量。
git config -l
当运行上面的命令,应该会看到配置的变量,结果如下所示:
Administrator@YYPC /C/Users/Administrator/Desktop (master)
$ git config -l
core.symlinks=false
core.autocrlf=true
color.diff=auto
color.status=auto
color.branch=auto
color.interactive=true
pack.packsizelimit=2g
help.format=html
http.sslcainfo=/bin/curl-ca-bundle.crt
sendemail.smtpserver=/bin/msmtp.exe
diff.astextplain.textconv=astextplain
rebase.autosquash=true
user.email=xuhuhu.com@gmail.com
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
gui.wmstate=normal
gui.geometry=799x475+304+80 287 214
可以使用命令更改自定义信息。在下一章中,您将了解如何使用git config命令配置用户名和用户的Eamil。
上一篇:
Gerrit环境安装
下一篇:
Gerrit设置用户名和电子邮件