Skip to content

Instantly share code, notes, and snippets.

@MrBogomips
Created February 3, 2015 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MrBogomips/0cfac4c37465907560e4 to your computer and use it in GitHub Desktop.
Save MrBogomips/0cfac4c37465907560e4 to your computer and use it in GitHub Desktop.
A .gitignore file suitable to keep a directory in a git repository while discarding all the contents.
# ATTENTION: rename this file to .gitignore!!!
# Ignore everything in this directory
*
# Except this file
!.gitignore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment