β

Use git global ignore file

./Lu 3 阅读
git

Some commonly ignored files, especially OS specific files, like .DS_Store , *.swp , etc., should be ignored globally rather than adding them to .gitignore for each project.

To configure global ignore, first check whether a global ignore config file is already bound.

  git config --get --global core.excludesFile

If you want to add a global git ignore file or change the existing one, use

  git config  --global core.excludesFile="~/.gitignore"
git
作者:./Lu
Better now than later.Better late than never.
原文地址:Use git global ignore file, 感谢原作者分享。

发表评论