Ignoring files
Sometimes you might not want git to track certain files (for example compressed files like .rar). To do that, create a .gitignore
file and add exceptions there.
Here’s an example of a .gitignore file that ignores compressed files with extensions (such as .rar, .zip etc)
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
In case if you wanted a predefined template head to gitignore.io and search for your programming lanugage, ide and OS
Alternatively you can also head to github/gitignore to download gitignore templates
- Next - Further Reading / Sources
-
Previous - Forking a Repository
- Back to Main Page