![]() DS_StoreĪnd now our "Untracked files" list has been reduced even further: $ git status ![]() gitignore (especially if we have to add more of these files for test and staging environments), we'll use a wildcard. To avoid having to explicitly add each to. DS_Store and node_modules are now gone from the "Untracked files" list, but we still have a few that we want to get rid of. Once saved, Git will now show us the following untracked files:īoth. So to ignore the above files, for example, we'll want to add the following. The simplest way to ignore a file, and most common, is to simply add the full filename to the ignore file. To do so, we'll first create a file in the project's root directory named. DS_Store and node_modules/ files in our repo, so we'll want to ignore these. The basics of using this ignore feature are pretty straight forward, which is what we'll go over in this section.įor the sake of our example, let's say we have a new project with the following untracked files: $ git status Everyone has their opinions on what should or shouldn't be tracked, so your best option is to review both sides of the debate and then make a decision for yourself based on what's best for your project. The advice given here may change depending on who you talk to, so you may want to take some of this with a grain of salt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |