r/git • • 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

79 comments sorted by

View all comments

1

u/jack-dawed 1d ago

locally i commit as often as i need to but i tend to clean up my commits by squeaking and rebasing before pushing so that the commit history has some sort of logical progression.