Git/配置:修订间差异
来自康健生活
无编辑摘要 |
|||
| (未显示同一用户的1个中间版本) | |||
| 第69行: | 第69行: | ||
== 配置文件 == | == 配置文件 == | ||
配置文件有三种 | |||
* <nowiki>/etc/gitconfig</nowiki>: 系统范围内的配置文件,读取时加 <nowiki>--system</nowiki> | |||
* <nowiki>${HOME}/.gitconfig</nowiki>: 用户的配置文件,读取时加 <nowiki>--global</nowiki> | |||
* <nowiki>.git/config</nowiki>: 项目内配置文件(当前 git 工作目录) | |||
=== .gitconfig === | === .gitconfig === | ||
{{Hc|.gitconfig|<syntaxhighlight lang="text"> | {{Hc|.gitconfig|<syntaxhighlight lang="text"> | ||
| 第77行: | 第82行: | ||
l = log --oneline --graph</syntaxhighlight>}} | l = log --oneline --graph</syntaxhighlight>}} | ||
=== .gitignore === | |||
=== .gitmodules === | |||
=== .gitignore === | === .gitignore === | ||