summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore20
1 files changed, 7 insertions, 13 deletions
diff --git a/.gitignore b/.gitignore
index e378210..a640121 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,20 +1,14 @@
# Things in /srv/git directly to ignore
/.??*
-!.gitignore
-!.gitconfig
+!/.gitignore
+!/.gitconfig
# General files to ignore
*~
*.sample
-# Things in git repos to ignore
-FETCH_HEAD
-HEAD
-branches
-#config
-#description
-#hooks
-#info
-objects
-packed-refs
-refs
+# Ignore most of the things in git repos
+**/*.git/*
+!**/*.git/config
+!**/*.git/description
+!**/*.git/hooks/