Open Incognito opened 7 years ago
Thanks,
Added gitignore - I'm too scared to see what happens when I delete the files on github (the ones included in the .gitignore file) so I'll make sure to include gitignore at the beginning of any new projects.
Your repo will be fine if you end up deleting most of these files. Many of these were created by things like Mac when you browse a folder with Finder (https://en.wikipedia.org/wiki/.DS_Store < the fact it does this is crazy annoying to me). Some of the others were created by your text editor so your settings per project are consistent. I'd say most projects have moved towards removing editor configuration from projects as they aren't really part of the project, and instead enforce things like code standards with other tools (check out http://docs.python-guide.org/en/latest/writing/style/ ). That said, you'll still find projects that ship editor configurations.
Feel free to close these issues when you feel you've made enough progress on them and understand the concept.
Also, work on them at your own speed, email me whenever or reply here with any questions. :)
Appreciate it :) Will dive deeper into these challenges in the upcoming weeks.
There are files that tell git which files can be ignored called
.gitignore
.Mac, by default, barfs
.DS_Store
files into all your directories.Also, it is not a best-practice to store the database in your repo (without really really good reasons in strange circumstances).
You should remove those files, your database, and add a
.gitignore
file. Then add a commit for that work.As a base to start with, you can use: https://github.com/github/gitignore/blob/master/Python.gitignore Typically the file will be in your project root as
.gitignore
You will need to add a rule to ignore DS_Store and your sqlite database file. http://stackoverflow.com/questions/18393498/gitignore-all-the-ds-store-files-in-every-folder-and-subfolder
https://git-scm.com/docs/gitignore
Once you do this, git will become unaware of these files in your project. This means they will exist, but not be tracked by git.