![]() ![]() You can see that we have an extension that does this. Let's go to the extensions, and search for gitignore. The shorter way is to use tools provided by the ID. You can copy it and paste it in your project. If you open it up, all the files and folders set up for you. I'll type in node, and you can see that we have a node option here. Let's say, "Add project as a node project." If you press this, it will give you a list of options to choose from. If you come down, you can see a add.gitignore button. If you go to your GitHub account and make a new repository, let's name this test. I'll show you a couple of ways you can do this. ![]() If we add node modules into our gitignore file, and wait for the changes to reflect, you can see that all the files and folders from the node modules folders are now not being tracked by the tracking system.Ĭreating gitignore files is daunting, and basically, it should always be automated. If you head to the Git tab, you can see a bunch of files that are being tracked from the node modules folder. Gitignore files solve this exact problem by letting us ignore the exact files and folders that we desire not to be included in our git repository. If we check our Git status, you can see that node modules is being tracked by our Git repository, which is not what we desire. In the package.json, I've added TypeScript types dependency. You can see that I have a TypeScript project set up over here. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |