A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES below for details.
참고: https://git-scm.com/docs/gitignore
파일 생성
mkdir .gitignore
# ignore all .a files
*.a
# but do track lib.a, even though you're ignoring .a files above
!lib.a
# only ignore the TODO file in the current directory, not subdir/TODO
/TODO
# ignore all files in any directory named build
build/
# ignore doc/notes.txt, but not doc/server/arch.txt
doc/*.txt
*.txt
# ignore all .pdf files in the doc/ directory and any of its subdirectories
doc/**/*.pdf
pro/db_settings.py