diff --git a/.gitignore b/.gitignore
index 23f79789ed99e43a603cbf0b803f9dab37d2d8ac..50452966542b9f0f8ef3df36755b36ba34dceea1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,6 @@
 .idea/
 *.pyc
 *.log
-logs
-tmp
 .vscode/tags
 config/engine-core.ini
 config/systemd/dev/
diff --git a/logs/.gitignore b/logs/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..86d0cb2726c6c7c179b99520c452dd1b68e7a813
--- /dev/null
+++ b/logs/.gitignore
@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore
\ No newline at end of file
diff --git a/socket/.gitignore b/socket/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..86d0cb2726c6c7c179b99520c452dd1b68e7a813
--- /dev/null
+++ b/socket/.gitignore
@@ -0,0 +1,4 @@
+# Ignore everything in this directory
+*
+# Except this file
+!.gitignore
\ No newline at end of file