diff --git a/NPLib/.gitignore b/NPLib/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..8a49827acb50d0b6db634af361a86e6584eba08e
--- /dev/null
+++ b/NPLib/.gitignore
@@ -0,0 +1 @@
+Makefile.detector
diff --git a/NPLib/include/.gitignore b/NPLib/include/.gitignore
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..356773cff4fe8a2d9ddc3c205135aff8a30eff19 100644
--- a/NPLib/include/.gitignore
+++ b/NPLib/include/.gitignore
@@ -0,0 +1,2 @@
+*.h
+*.hh
diff --git a/NPSimulation/include/.gitignore b/NPSimulation/include/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..d0fd0137288a79d343f0762898dccc667dcd16db
--- /dev/null
+++ b/NPSimulation/include/.gitignore
@@ -0,0 +1 @@
+*.hh
diff --git a/NPSimulation/src/.gitignore b/NPSimulation/src/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..283034ca8b41040e2fa9087ba8fc179f0b655e89
--- /dev/null
+++ b/NPSimulation/src/.gitignore
@@ -0,0 +1 @@
+*.cc