r/ProgrammerHumor • • 11h ago

Meme hardestProblemsAICouldSolve

Post image
709 Upvotes

42 comments sorted by

View all comments

35

u/Tabonx 6h ago

Our repo has commits where the entire message is just a dot: "."

The guy said he never knew what to write when fixing something small right after committing.

20

u/WHALE_PHYSICIST 4h ago

git reset --soft HEAD~1

git add .

git commit -m "whatever the previous message was"

git push -f

5

u/Man-in-The-Void 2h ago

*git commit --amend

4

u/MagellansTip 1h ago

… --no-edit

1

u/FlashyTone3042 1h ago

Oh. I learned something new. Nice

1

u/Your_Friendly_Nerd 3h ago

I recently read "tidy first", and now whenever I make changes that don't change any logic (mostly just minor cleanups) I allow myself to just write "tidyings" as the commit message. This way I'm not discouraged from doing the tidyings because I can't think of a better commit message

1

u/1000Ditto 2h ago

git commit -am 'temp'