Skip to content

Instantly share code, notes, and snippets.

@td-shi
Created November 18, 2021 12:52
Show Gist options
  • Save td-shi/585df0fd56a8f7d0d9a8e2ad6023034e to your computer and use it in GitHub Desktop.
Save td-shi/585df0fd56a8f7d0d9a8e2ad6023034e to your computer and use it in GitHub Desktop.
This is .gitignore template which white list style. Rename to `.gitignore` and put on the repository root.
# .gitignore
# Ignore All
*
!*/
# White List
!.gitignore
!.gitattributes
!.git/*
!.github/*
!*.c
!*.csv
!*.tsv
!*.cpp
!*.gif
!*.gpg
!*.h
!*.jpg
!*.js
!*.json
!*.txt
!*.md
!*.org
!*.odg
!*.ott
!*.ods
!*.odb
!*.pdf
!*.png
!*.py
!*.sh
!*.svg
!*.tex
!*.yml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment