January 2019
Beginner to intermediate
776 pages
19h 58m
English
From time to time, there are files you do not want Git to check into GitHub or other repositories. The easiest way to do this is to create .gitignore in the repository folder; Git will use it to determine which files a directory should ignore before you make a commit. This file should be committed into the repository to share the ignore rules with other users.
This file can include language-specific files, for example, let's exclude the Python Byte-compiled files:
# Byte-compiled / optimized / DLL files__pycache__/*.py[cod]*$py.class
We can also include files that are specific to your operating system:
# OSX# =========================.DS_Store.AppleDouble.LSOverride
You can learn more about .gitignore on GitHub's help page:
Read now
Unlock full access