DEV Community

Discussion on: When to make a Git Commit

Collapse
 
datamafia profile image
data['mafia'] = True

Once again this discussion below has 2 types - enlightened and everyone else.

I agree with the rules, but we must emphasize master versus not master. I find most disagreement is between those who can't split the two. If you are working on master on a team you lack enlightenment, sorry brah, go back to GA and try to find an instructor who is not a burn out.

If not on master any of the reasons to commit are valid. If you commit each time your dog takes a healthy steamer on the kitchen floor, fine.

Just not on master.

When not on master (I work on local and scratch branches that never get published and squash/rebase) do as you wish. Fuck, I commit just so I can watch the diff when refactoring. I commit to make sure my cat doesn't not add some chars when I am outside the building drinking whiskey with some homeless guy. The ability to "revert to sober" is great.

What ever works for you...

Master should be squash/rebase/however you keep it clean.

I also recommend sobriety when intoxication is not appropriate.

Or is it the other way around?

I forget.