Skip to content

Instantly share code, notes, and snippets.

@cnleo
Created March 11, 2024 01:44
Show Gist options
  • Save cnleo/dd104001a7f09fdd25b6f613432bc10d to your computer and use it in GitHub Desktop.
Save cnleo/dd104001a7f09fdd25b6f613432bc10d to your computer and use it in GitHub Desktop.
gitignore
# ignore everything: *
# and what ever you do, setup .gitignore as exeption from ignoring: !.gitignore
# https://git-scm.com/docs/gitignore
# https://gist.github.com/bennlee/92ffaa27eea326da46e538a80c3eebae
# https://git-scm.com/docs/git-check-ignore
*
!.gitignore
# Moste classics:
!LICENSE
!README.md
# negate ignoring everything; or whitelisting:
# all directories: !*/
# all directories with name "folder": !folder/
# specific directory with name "folder": !/path/to/folder/
# all directories in a directory with name "folder": !folder/*/
# all directories in a specific directory with name "folder": !/path/to/folder/*/
# all files: !*
# all files in all directories: !*/*
# files in folders: !/*
# or !folder/*
#!.gitignore
#!folder/
#!*/*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment