Billions of unnecessary files in GitHub
The way to make sure that neither we nor anyone else adds these files to the git repository by mistake is to create a file called
.gitignore
, include patterns that match the files we would like to exclude from git and add the.gitignore
file to our repository. git will ignore those file. They won't even show up when you rungit status
.
Source: Billions of unnecessary files in GitHub, an article by Gabor Szabo.