zl程序教程

您现在的位置是:首页 >  其他

当前栏目

Git 配置全局忽略文件

2023-04-18 14:39:19 时间

(1)

  1. 在家目录创建一个.gitignore_global文件,将常用的忽略写进入,官方提供了一些模板
  2. 确保家目录.gitconfig文件中[core]代码中指定了这个文件的路径,我的电脑上是这样的:
[core]
autocrlf = input
safecrlf = false
excludesfile = /Users/yangyan/.gitignore_global