Skip to content

Instantly share code, notes, and snippets.

@gam-phon
Forked from x3rAx/.gitignore
Last active October 15, 2018 20:40
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 gam-phon/3a1dbee1c5f23ed0ad8ab2750fccc2eb to your computer and use it in GitHub Desktop.
Save gam-phon/3a1dbee1c5f23ed0ad8ab2750fccc2eb to your computer and use it in GitHub Desktop.
Gitignore with .gitkeep
# +----------------------------+
# | IDE files |
# +----------------------------+
/.idea
# +----------------------------+
# | Vagrant |
# +----------------------------+
/.vagrant
/config/local/*
/vagrant_config
# +----------------------------+
# | misc |
# +----------------------------+
# +----------------------------+
# | Keep .gitkeep files |
# +----------------------------+-------------------------------+
# | To keep an empty directory, add a .gitkeep file to it |
# | and ignore the directory with a wildcard: |
# | |
# | /path/to/dir/* |
# | |
# | this will ignore the content but not the director itself. |
# +------------------------------------------------------------+
!/**/.gitkeep
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment