全局 .gitIgnore 文件的内容是什么?

What is the content of global .gitIgnore file?

每次我尝试创建新的存储库时,我都需要用更多评论更新我的 .gitignore 文件。现在我正在使用 cocoapods,以便我的 .gitigore 文件应该忽略 userInterfaceState 文件更改。我必须添加什么评论才能忽略频繁提交。是否有涵盖所有场景的全局.gitignore 内容?

你应该试试 github gitignore 的:

https://github.com/github/gitignore

有很多开发框架或环境的模板。

要设置全局 gitignore 文件,您可以这样做

git config --global core.excludesfile /home/user/.globalgitignore