企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[toc] ## 命令 `git config` 在不同的目录下对应的配置不同`git config,~/.gitconfig`和`.git/config`分别是系统级,用户级和项目级 ## 示例 ### 检查配置项 如下是在windows上,安装的msysGit2.17版,用户目录下 ~~~ carl@carl MINGW64 ~ $ pwd /c/Users/carl ~~~ ~~~ carl@carl MINGW64 ~ $ 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.sslcainfo=d:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt http.sslbackend=openssl 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 credential.helper=manager user.name=quanqiang-li user.email=2476056494@qq.com ~~~ ### 修改配置 ~~~ $ git config --global user.name "John Doe" $ git config --global user.email johndoe@example.com ~~~