Skip to content

Instantly share code, notes, and snippets.

@algonzalez
Last active August 29, 2015 14:14
Show Gist options
  • Save algonzalez/8274bd62f27e27b5a7ac to your computer and use it in GitHub Desktop.
Save algonzalez/8274bd62f27e27b5a7ac to your computer and use it in GitHub Desktop.
Place this ".gitignore" file in an empty directory so that it will be tracked with the project but don't want any other files in the directory to be tracked.
# ignore all files in this directory
*
# except for these files
!.gitignore
# and except nested directories (remove if no sub-dirs should be tracked)
!*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment