.gitignore
files tell Git what not to add to the repository during commits. Usually what we put in our .gitignore
:
- Final builds — usually these are platform-specific or don’t reflect a release version. Better to rebuild locally than share a final build.
- Intermediate files — most compilers and interpreters will output cache or intermediate binary files. We exclude them for the same reason we exclude our final builds.