配置全局用户名和邮箱:git
git config –-global user.name yourName(如weChat) git config –-global user.email youEmail(如weChat@foxmail.com)
查询已配置的全局用户名和邮箱:code
git config user.name git config user.email git config --list --global
添加全局用户名和邮箱:ci
git config --global --add user.name yourName(如weChat) git config --global --add user.email youEmail(如weChat@foxmail.com)
修改全局用户名和邮箱:文档
git config --global user.name yourName(如weChat) git config --global user.email youEmail(如weChat@foxmail.com)
删除全局用户名和邮箱:it
git config --global --unset user.name yourName(如weChat) git config --global --unset user.email youEmail(如weChat@foxmail.com)
查看Git文档的两种方式 :email
git config –-help git help config
checkout别名:配置
git config --global alias.co checkout
branch别名:查询
git config --global alias.br branch
status别名:mail
git config --global alias.st status
commit别名:co
git config --global alias.ci commit
给带参数"log --oneline"别名:
git config --global alias.lol "log --oneline"
设置大小写敏感:
git config core.ignorecase false
未完待续...