Git - 忽略所有非点文件

标签 git gitignore dotfiles

我正在尝试找出 .gitignore 的规则文件只跟踪我的点文件。 我试过 !.* 的组合和 !^.** 之后使用还有[^.]*按照建议here .这些都没有忽略所有可见的非点文件。我错过了什么?

最佳答案

尝试

*
!/**/
!.*

忽略一切,忽略所有目录,忽略点文件。

关于Git - 忽略所有非点文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59564134/

相关文章:

tomcat - 如何使用 Tomcat 为 Liferay 项目正确配置 .gitignore 文件?

macos - vim - 如何删除 netrw?

linux - 任何点文件的类似 ssh-agent 的行为

Git 回滚 1 pull

git - 如何使用别名扩展内置 Git 命令?

git - 如何在 Git 中忽略目录中的文件?

unity-game-engine - 如何修复 .gitignore 以允许上传 *.meta 文件

git - 如何将 Git 项目迁移为包含子项目的一个项目

Git Visual Studio 2015 成功构建后自动提交

bash - 我应该在环境路径名中使用引号吗?