GIT
Git配置
## 查看当前git环境详细配置 ```shell #命令 git config -l ##===========》 #用户名 user.name=zhuyibo #用户邮箱 user.email=2404697004@qq.com 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 core.autocrlf=true core.symlinks=false core.autocrlf=true core.fscache=true core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.symlinks=false #配置当前项目不忽略文件大小写,git默认忽略文件名的大小写,这点值得注意 core.ignorecase=true ``` ## 查看系统config ```shell 配置文件在git安装目录/etc/gitconfig git config --system --list http.sslbackend=openssl http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt credential.helper=manager ``` ## 查看当前用户配置 ```shell 配置文件在~/.gitconfig git config --global --list core.autocrlf=true user.name=zhuyibo user.email=2404697004@qq.com ``` ## 查看当前仓库配置信息 ```shell 配置文件在当前项目的/.git/config git config --local --list core.repositoryformatversion=0 core.filemode=false core.bare=false core.logallrefupdates=true core.symlinks=false core.ignorecase=true ``` ## 修改git配置 ```shell git config [--local][--global][--system] section.key value 设置当前项目的用户名 git config --local user.name huhuhu #设置当前项目的用户邮箱 git config --local user.email huhuhu@163.com ``` ## 删除git配置 ```shell git config [--local][--global][--system] --unset section.key ```
顶部
收展
底部
[TOC]
目录
Git简介与安装
Git工作原理
Git配置
Git常用命令
Git技巧
Git最佳实践
Github访问速度慢,如何解决?