Last active
April 5, 2017 14:52
-
-
Save githubnando/5e034be24f54e4f14108411c079c8a9d to your computer and use it in GitHub Desktop.
Useful policies of .gitignore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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