diff --git a/.gitignore b/.gitignore
index 710b6774d..81bd5106f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,8 +1,8 @@
 *
-!.circleci/*
+!.circleci/**
 !.editorconfig
 !.gitattributes
-!.github/*
+!.github/**
 !.gitignore
 !.hlint.yaml
 !.mailmap
@@ -27,16 +27,17 @@
 !release.nix
 !shell.nix
 !stack.yaml
-!app/*
-!benchmark/*
-!citeproc/*
-!data/*
-!doc/*
-!linux/*
-!macos/*
-!man/*
-!src/*
-!test/*
-!tools/*
-!trypandoc/*
-!windows/*
+!app/**
+!benchmark/**
+!citeproc/**
+!data/**
+!doc/**
+!linux/**
+!macos/**
+!man/**
+!src/**
+!test/**
+!tools/**
+!trypandoc/**
+!windows/**
+*.bkp