Skip to content

Instantly share code, notes, and snippets.

@vikas-git
Created February 28, 2019 06:28
Show Gist options
  • Save vikas-git/3c68352dbd99c9ea751f8e9baca73614 to your computer and use it in GitHub Desktop.
Save vikas-git/3c68352dbd99c9ea751f8e9baca73614 to your computer and use it in GitHub Desktop.
Gitignore file common uses for Python
# It ignore whole certain directory
env/
instance/*
# It ignore all files in certain directory but not given directory
!instance/.gitkeep
!migrations/__init__.py
# It ignore all files which has certain extension
*.pyc
*.rdb
# It ignore certain given file
db.sqlite3
local_settings.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment