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

1

u/AlleyOcelot 17h ago

Put "WIP" and a description of where you're at / what the holdup is to it working in the commit message. ex 'product filter WIP, missing UI classes'. Hard second to everyone saying don't go over 1/2 day without a commit. Do all this on a non merged branch.