Reputation: 1
I am a beginner developer, and today I deployed my first Python web app (from GitHub to Heroku). This was basically my process:
git add .
,git commit -m
, and git push heroku master
multiple times to try it out, but it wouldn't work.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?
Upvotes: 0
Views: 277
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