Skip to content

Instantly share code, notes, and snippets.

@githubnando
Last active April 5, 2017 14:52
Show Gist options
  • Save githubnando/5e034be24f54e4f14108411c079c8a9d to your computer and use it in GitHub Desktop.
Save githubnando/5e034be24f54e4f14108411c079c8a9d to your computer and use it in GitHub Desktop.
Useful policies of .gitignore
# Just add any subfolder in uploads path with a .gitkeep file in it to
# ignore all the files except the directory
# this doesnt work
public_html/uploads/**/*
!/**/.gitkeep
# instead, name it every directory that needs to ignore files
public_html/uploads/moduleSuperCool/*
!/**/.gitkeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment