Ignoring files
Most of the time, one would not want to transfer all the folders and files in your local project onto GitHub. For example, if you are working on a data science project and the datasets you are working with are significantly large, it is undesirable to upload these datasets on GitHub. In fact, there is a limit of 100 MB in size for files that you can upload to GitHub. Another reason not to upload everything to GitHub is to avoid leakage of sensitive information such as login credentials and API keys that are stored in your projects.
To leave certain files out of the transferring process, you can take advantage of a .gitignore file. Treated as a hidden file, only to be interpreted by Git, .gitignore can be edited as a text file ...
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