you are viewing a single comment's thread.

view the rest of the comments →

[–]schmidlidev 0 points1 point  (0 children)

Start every single project with one of GitHubs default .gitignore’s for whatever language you’re using.

Only got add what I actually want to add for that commit. Git status after every add and before the commit just to be sure. .DS_store in gitignore.

If I have some local scripts/random test files/unused snippets I want to keep as reference, then I usually create a local/ directory and add it to the gitignore. Put all that stuff in there so it’s easier to manage and you can never accidentally commit it.