I tried creating a .gitignore file but it didn't work

I tried creating a .gitignore file but it didn't work
0

#1

Does anyone else out there that uses VS code know what to do?

Thanks,

Silas


#2

I see you have .npmignore - I must assume you did not create it.

Did you right click on the folder and then choose New File? You should be able to type it into the text name.

If that is what you have already done, what did it do?


#3

I created a .gitignore file, then added node_modules-- after that I refreshed or restarted VS code, but it’s still there.


#4

Are you planning to deploy this to GitHub?

When you upload your files, it should ignore those files in the .gitignore and not use them.

At least, it’s my understanding of the purpose of it. I don’t think it takes it out of VS Code.


#5

No it won’t push to my repository because of all of those files.


#6

Oh rats. I don’t know.

I’m sorry.

Try asking on the gitter channel: https://gitter.im/Microsoft/vscode

I hope you find the answer.


#7

Thank you for trying to help anyways. I really appreciate it.


#8

Ask in the gitter channel.

It’s VS Code specific and they may be able to help.


#9

Hi! You Could do a one “git status” to look if .gitignore run or not.