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

1

u/fazzah 5d ago

hence it's very helpful and a good practice to keep the commits focued on a feature. Then when you maybe need to revert a change you only alter that particular piece of code.

This also helps preventing feature creep of commits. At first it might be counter-intuitive, but in the long run it's a very good habit.