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
10
u/gororuns 22h ago
If you are working by yourself, you can always use 'commit --amend' to overwrite the last commit, to keep your branch clean. Imo there's no such thing as committing too often, only not committing enough, and a rookie mistake is to lose work by not committing.