![]() ![]() Committing OS files to your GitHub project ends up adding unnecessary changes to your commit history, which is why it’s best to ignore them. DS_Store or Thumbs.db files do not have any impact on your project, and everyone on your team already has OS files on their own computers. Operating System Files - System operating files for Mac, Linux, or Windows are used for display purposes for your own computer.With this in mind, let’s take a closer look at some common file types that fall into these categories: Any file that was generated through another process.Any file that is not needed by other people on your team.Any file that is not needed for the project.But here’s a good rule of thumb to help you decide which type of files should be added to Gitignore: ![]() Obviously, the Gitignore files will vary from project to project. Excluding files that aren’t needed specifically for the project is also a good idea. Keeping the commits clean means you should never add files that could create unnecessary confusion or problems. Since GitHub is used to track changes, it should always be your goal to keep your commit history as clean as possible. Next, you need to figure out which files should be ignored. Step #2: Decide What Type of Files to Ignore in GitHub
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |