Thomas Segato
Thomas Segato

Reputation: 5257

git and Angular 6 exclusion of folders

I followed this basic sample on how to push files to VSTS: https://learn.microsoft.com/en-us/azure/devops/repos/git/share-your-code-in-git-cmdline?view=vsts

I havent added any ignore files. Just the simple commands in the article. Of some reason node_modules, e2e and dist folders are ignored. I guess this is actually what i want, but how does my git know this? I have just made a simple ng new "ddd" is there anything in the angular files that ensures folders are ignored? I had a look and coundt find anything that looks like git ignore.

Upvotes: 1

Views: 1983

Answers (1)

Lazar Ljubenović
Lazar Ljubenović

Reputation: 19764

I have just made a simple ng new "ddd" is there anything in the angular files that ensures folders are ignored?

When you create a new project with ng new, it generates a lot of files for you, one of which is .gitignore.

I had a look and coundt find anything that looks like git ignore.

If you're on Windows, you're probably not seeing the file in Explorer because it's starts with ., which means that Windows treats it as a hidden files. Google around for a solution on "windows show hidden files" for your Windows version. You should see the .gitignore file in the root of the project ddd. It's a textual file, so you can open it with, for example, Notepad.

Upvotes: 1

Related Questions