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

Show parent comment

2

u/TagadaPouetPouet 1d ago

This is the most important. You can still rebase to squash or rework the commits, but in the end what really matters is having a list of meaningful commits.
A reviewer should be able to understand your work by reading the successive commit messages.