A file outside the repository (.git/info/exclude) can replace this and suits better for this usecase.
@@ -1,3 +0,0 @@
-slstatus
-slstatus.o
-config.h