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

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

Thanks,

Silas

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?

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

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.

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

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.

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

Ask in the gitter channel.

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

1 Like

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