diff --git a/.gitignore b/.gitignore
index 33662f55..d253dfad 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,3 @@
-/*
+*
+!*/
+!/tag-*/**