Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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