如何设置Git用户签名以避免现学现忘?
- 内容介绍
- 文章标签
- 相关推荐
本文共计533个文字,预计阅读时间需要3分钟。
目录+1、配置Git签名(1)语法+2、配置系统用户签名+3、配置全局用户签名+4、配置本地用户签名+2、查看三个配置文件的签名(1)语法+(2)查看项目/仓库级别的配置文件
- 1、配置Git签名
- (1)语法
- (2)配置系统用户签名
- (3)配置全局用户签名
- (4)配置本地用户签名
- 2、查看三个配置文件的用户签名
- (1)语法
- (2)查看项目/仓库级别的配置文件信息(local)
- (3)查看用户/全局级别的配置文件信息(global)
- (4)查看系统级别的配置文件信息(system)
- (5)查看当前系统中Git的所有配置信息
- 3、总结
$ git config 配置文件作用域 user.name '用户名'
$ git config 配置文件作用域 user.email '邮箱地址'
示例如下:
$ git config --global user.name ‘your_name'
$ git config --global user.email ‘your_email@domain.com'
注意:这个email一定是有效的,是你能够收得到邮件的email。
可在任意目录下运行创建命令:git config --system
L@DESKTOP-T2AI2SU MINGW64 /j/git-repository/learngit
$ git config --system user.name 'tang_s'
L@DESKTOP-T2AI2SU MINGW64 /j/git-repository/learngit
$ git config --system user.email 'tang_s@126.com'
提示:在Git中,没有提示就是最好的提示。
系统用户注册信息会写在本地Git的安装目录下,...\etc\gitconfig文件中。
L@DESKTOP-T2AI2SU MINGW64 /j/git-repository/learngit
$ cat /f/DevInstall/Git/GitforWindows/etc/gitconfig
[diff "astextplain"]
textconv = astextplain
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[www.558idc.com/gfip.html欢迎留下您的宝贵建议】
本文共计533个文字,预计阅读时间需要3分钟。
目录+1、配置Git签名(1)语法+2、配置系统用户签名+3、配置全局用户签名+4、配置本地用户签名+2、查看三个配置文件的签名(1)语法+(2)查看项目/仓库级别的配置文件
- 1、配置Git签名
- (1)语法
- (2)配置系统用户签名
- (3)配置全局用户签名
- (4)配置本地用户签名
- 2、查看三个配置文件的用户签名
- (1)语法
- (2)查看项目/仓库级别的配置文件信息(local)
- (3)查看用户/全局级别的配置文件信息(global)
- (4)查看系统级别的配置文件信息(system)
- (5)查看当前系统中Git的所有配置信息
- 3、总结
$ git config 配置文件作用域 user.name '用户名'
$ git config 配置文件作用域 user.email '邮箱地址'
示例如下:
$ git config --global user.name ‘your_name'
$ git config --global user.email ‘your_email@domain.com'
注意:这个email一定是有效的,是你能够收得到邮件的email。
可在任意目录下运行创建命令:git config --system
L@DESKTOP-T2AI2SU MINGW64 /j/git-repository/learngit
$ git config --system user.name 'tang_s'
L@DESKTOP-T2AI2SU MINGW64 /j/git-repository/learngit
$ git config --system user.email 'tang_s@126.com'
提示:在Git中,没有提示就是最好的提示。
系统用户注册信息会写在本地Git的安装目录下,...\etc\gitconfig文件中。
L@DESKTOP-T2AI2SU MINGW64 /j/git-repository/learngit
$ cat /f/DevInstall/Git/GitforWindows/etc/gitconfig
[diff "astextplain"]
textconv = astextplain
[filter "lfs"]
clean = git-lfs clean -- %f
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
[www.558idc.com/gfip.html欢迎留下您的宝贵建议】

