Git for economists
  • Introduction
  • Git concept
  • Installing Git
  • Using Git for the first time
  • Using Remote Repository
  • Working with branches
  • Extra commands
  • Appendix - .gitignore file example
  • Page 1
Powered by GitBook
On this page

Was this helpful?

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).

PreviousExtra commandsNextPage 1

Last updated 2 years ago

Was this helpful?