News for hackers. Stuff that matters.
Re:Ask HN: How do you stop forgetting to commit or push? by Jtsummers on Monday March 28, 2022 @11:13AM (#30831341)
Same way I learned to use C-s (or whatever your editor's equivalent is) as a habit gesture. I got burned. "Save early, save often" was extended, for me, with "commit early, commit often", also after getting burned with an over-large (and broken in a few ways) commit that had merge conflicts with other people's work.

Pushing is the same, except it's an extension of my "make a backup of the hard drive because it can fail at any time" learning experience. I push because that's how the backup works for a git repo (also collaboration), I backup because I got burned when a HDD failed catastrophically and I had no consistent backups.

Something fails, learn from the experience and make new habits or processes (automated or manual) to avoid those failures in the future.

There are no comments on this comment yet.