Skip to content

Instantly share code, notes, and snippets.

@dagostoni
Created June 11, 2013 10:54
Show Gist options
  • Save dagostoni/5756023 to your computer and use it in GitHub Desktop.
Save dagostoni/5756023 to your computer and use it in GitHub Desktop.
Add empty directory to a git repository
Create in the directory a .gitignore file with this content:
# 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