r/git • u/TachikawaKan5241 • 1d ago
How often should I commit my changes?
I am fairly new to programming and git and I was just wondering how often I should commit my changes both locally and to Github? I feel like I'm doing it to often
9
Upvotes
View all comments
Show parent comment
-1
u/jorgb 1d ago
Yes, if you can't trust previous versions to be working, you might as well create a zip file periodically of your codebase. It will become more and more important when your repo gets bigger and complex, then you might need to go a few versions back to debug a change