I just created a Github repository and was wondering what the .gitignore file was for. I started by not creating one, but added one due to the fact that most re
There are files you don't want Git to check in to. Git sees every file in your working copy as one of three things:
Ignored files are usually built artifacts and machine-generated files that can be derived from your repository source or should otherwise not be committed. Some common examples are:
/node_modules or /packages.o, .pyc, and .class files/bin, /out, or /target.log, .lock, or .tmp.DS_Store or Thumbs.db.idea/workspace.xmlIgnored files are tracked in a special file named .gitignore that is checked in at the root of your repository. There is no explicit git ignore command: instead the .gitignore file must be edited and committed by hand when you have new files that you wish to ignore. .gitignore files contain patterns that are matched against file names in your repository to determine whether or not they should be ignored. Here is a sample.gitignore file.
For more details look at this link