r/git • u/TachikawaKan5241 • 2d 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
12
Upvotes
View all comments
Show parent comment
9
u/Soggy_Writing_3912 advanced 2d ago
that being said, i would still strongly suggest a commit at the outermost of 4 hrs of work. in other words, if you have been at it for 4 hrs, and still don't have some meaningful state (by developers' definition, not business definition), then something else is wrong.