Skip to content

Instantly share code, notes, and snippets.

@MatthewScholefield
Last active March 12, 2024 21:39
Show Gist options
  • Save MatthewScholefield/91c671f5e4d3c56cf5a1 to your computer and use it in GitHub Desktop.
Save MatthewScholefield/91c671f5e4d3c56cf5a1 to your computer and use it in GitHub Desktop.
Include only certain file types with .gitignore
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*/*.*
*/*/*/*/*/*/*.*
*/*/*/*/*/*.*
*/*/*/*/*.*
*/*/*/*.*
*/*/*.*
*/*.*
*.*
!/**/*.cpp
!/**/*.h
# ================== Caveats ================== #
# - It only works with up to 32 subdirectories #
# - It only excludes files with extensions #
# - New, empty folders will be included #
# - It will exclude any folder with a period #
# ============================================= #
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment