Saumya Shah
Saumya Shah

Reputation: 1

Unexpectedly many notifications on VS Code Source Control

I am a beginner developer, and today I deployed my first Python web app (from GitHub to Heroku). This was basically my process:

When I opened VS Code the next time, I saw 5 thousand notifications in the Source Control tab. Is this normal? Is it safe to discard all these changes?

Here's a screenshot

Upvotes: 0

Views: 277

Answers (1)

Caesar
Caesar

Reputation: 587

These are not really notifications, they are new files which have not been commited to Git yet (unstaged files).

These files are the output of your project's build process. You don't want to track them in your Git repo, so you will want to add your build directory, along with __pycache__ and probably at least a few others, to your .gitignore file so that Git ignores them.

For reference, here is GitHub's default .gitignore for Python projects. It has 138 lines – you probably don't actually need more than a few of them for your particular project, but it won't do any harm to use the whole file as-is.

You can learn more about ignoring files in Git here.

Upvotes: 0

Related Questions