Appendix - .gitignore file example

Below is an example of a very simple .gitignore file.

# ignore ALL .log files
*.log

# ignore ALL files in ANY directory named temp
temp/

# ignore files that are named example.py
example.py

Name the file .gitignore and save it at the root of the project (where the .git folder is located).

Last updated

Was this helpful?