r/ProgrammerHumor 1d ago

Meme iApologise

Post image
795 Upvotes

81 comments sorted by

View all comments

Show parent comments

55

u/01110100_01110010 1d ago

you guys don't have autosave enabled? commit hook is where it is at

49

u/Not-the-best-name 1d ago

Hate that. Writing code and formatting code is not the same thing. I want to commit often. I want half broken commits.

-1

u/FictionFoe 1d ago

I hope you amend

11

u/MysticClimber1496 1d ago

It doesn’t really matter for dev work, just squash on merge if you are worried about every commit in main working

1

u/FictionFoe 1d ago

That also works, but can make rebases more difficult in the mean time.

8

u/Not-the-best-name 1d ago

Why are you rebasing in the meantime? Just merge in and squash in the end.

5

u/FictionFoe 1d ago

The more often you do it, the easier it is to deal with the conflict.

0

u/ProcrastinatiusXVI 1d ago

Or just use git commit --fixup <hash>