gitignore
Git is very effective for storing and tracking code, which is usually distributed in relatively small text-based files. It does not, however, behave well with data files, which are large and change frequently. Also, there is no reason to store and track multiple backup files. And, of course, never ever add any credentials to the repository!
A .gitignore file defines which file Git will ignore. It will accept wildcards – for example, data/*.csv will mask all csv files in the data folder directly. Note that this will not remove any files that are already tracked in the repository, as there are plenty of byproduct utility files we don't need to track (such as __pycache__ and .ipynb_checkpoints files). You can create and reuse your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access