美文网首页
Git中全局忽略.DS_Store文件

Git中全局忽略.DS_Store文件

作者: 油麦菜洋葱头 | 来源:发表于2017-09-12 14:54 被阅读0次

不废话,直接上命令

1、touch .gitignore_global

2、open .gitignore_global

3、在打开的gitignore_global中输入如下内容

.DS_Store

//此处为空格

*/.DS_Store

4、open .gitconfig

5、在打开的gitconfig中输入下入下内容:

[core]

excludesfile = /Users/用户名/.gitignore_global

其中上面的“用户名” 不用多说,是你电脑名字 命令行中输入pwd可以查看


保存

完结

相关文章

网友评论

      本文标题:Git中全局忽略.DS_Store文件

      本文链接:https://www.haomeiwen.com/subject/waucsxtx.html