From ddd08445e9ce5345eb944fcf52ed9ef13aaa1116 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Sun, 19 Nov 2023 21:17:22 +0200 Subject: [PATCH] .gitignore: just ignore all dotfiles except excluded ones I think I saw this practice at Syncplay and I am accidentally attempting to bring dotfiles in --- .gitignore | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 81eec2b..85d1682 100644 --- a/.gitignore +++ b/.gitignore @@ -1,14 +1,19 @@ -# Editor swap files -*~* -*.swp -*.tmp +# All dotfiles +.* -# .gitlab-ci.yml pre-commit directory -.cache/** +# Except not these +!.editorconfig +!.gitattributes +!.github +!.gitignore +!.gitlab-ci.yml +!.gitmodules +!.mailmap +!.mikaela +!.mikaela_install +!.pre-commit-config.yaml +!.reuse -# Symlink +# Symlinks install.run LICENSE - -# ??? -.git