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
6
u/One-Payment434 1d ago
You're describing when to create a pull-request; standard procedure is to do development on a branch and when the code in this branch is working it is merged into main.
During development you can commit as often as you want, I haven't seen anyone yet committing too often on a development branch.