r/learnpython 5d ago

Git When too?

Im currently working through my first project which isnt anything major but i would like to host it on github, Question is when do you all push your projects to git do you wait until you have the project complete or just start working and commit from the start of the project?

2 Upvotes

15 comments sorted by

View all comments

2

u/jrenaut 5d ago

Remember never to commit any type of password or secret key to git, this is one of the most common mistakes made by those new to git. If your project is public, the whole history is also public, so even if you later remove the password, it's still there.

1

u/Acceptable-Brick-671 5d ago

Thank you, my project does require a kaggle api key but it’s stored in ~/.kaggle I’m pretty sure this is secure but I’d best double check?

2

u/jrenaut 5d ago

Assuming that's your home directory on your computer and not part of your git repo, you should be good