jhanreg11/personal-website

Add .gitignore

Closed this issue · 0 comments

I noticed you have a .DS_Store in some of your folders. I recommend adding a .gitignore to your github repositories so that you don't commit files like them. This is MacOS specific and happens when you open that folder in finder. Same goes for .pyc files. Checkout some of my .gitignore's for reference, but something like

.DS_Store
*.pyc

will now not track changes in any files that are named .DS_Store in any directory, I believe. Also, *.pyc, not that it matters for this project, but the asterisks will ignore any and all files that end with .pyc. These are binary files that will be re-generated when you change the .py file that corresponds with it as you run python <your_file>.py.

Also, I think since you've already added the .DS_Store file, you'll have to explicitly delete it once you add the .gitignore file because it might not pickup that you deleted it once it stops tracking the changes for it. Look it up online if you can't figure it out. Not a big deal just for future reference you should use .gitignore's so that only changes that actually affect the project, and not computer specific files are added to the central repository.