gitignore.Īssuming your placement of the. If you add helloworld.gitignore it won't work. This is an old solved question, but for anyone else who is still struggling with the accepted (and correct) answer, you literally need to add a file to your main (ie root) project folder called: Right click on the folder you want to add to.Click on three dots at right top of Source Control tab.For example, this is useful if your home dir is under version control, since thousands of files would have to be ignored otherwise, which is hardly what you want.įollow the steps to add a folder to. gitignore file if the only thing you want to do is to exclude a folder from vscode git but not from git itself. Which specifically does what you're asking. You can use this setting: "git.ignoredRepositories": In your case your file would contain /node_modules/ gitignore file in the base directory of your git repository and add any files or folders that you would like to ignore. Here is a link that talks about the exclude file and why it worked for my VS Code editor. UPDATE: I made a change to the ".git/info/exclude" file and my Git repository view cleared up instantly. I am looking for any documentation you could point me to. I am sure the real answer is something completely different. I would think I could do a "git.exclude" but where do I begin. I see a "Git configuration" in the default settings but I can't find any documentation on my possible options here. Thought: I found under File > Preferences > User Settings that there is a configuration file called "settings.json" that will overwrite the default settings. I figure whoever runs the package.json can do that on their own computer. How do I make git ignore my "node_modules" folder? Every item in this folder is listed for possible commits and that is cluttering up my workspace. I figured this was a good time to start teaching myself to use git. I am using Visual Studio Code version 0.7.10.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |