r/ProgrammerHumor • • Oct 19 '26

Meme hardestProblemsAICouldSolve

Post image
1.6k Upvotes

78 comments sorted by

View all comments

81

u/Tabonx Oct 19 '26

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.

54

u/WHALE_PHYSICIST Oct 19 '26

git reset --soft HEAD~1

git add .

git commit -m "whatever the previous message was"

git push -f

20

u/Man-in-The-Void Oct 19 '26

*git commit --amend

14

u/MagellansTip Oct 19 '26

… --no-edit

1

u/FlashyTone3042 Oct 19 '26

Oh. I learned something new. Nice

3

u/Cootshk Oct 20 '26

git commit -a —amend —no-edit

For if you forgot to add a file before committing (*does not add files that weren’t previously tracked, only adds files that have had changes)

5

u/mango_boii Oct 20 '26

git commit -a --amend --no-edit --reset-author

All your commits are belong to us 😎

2

u/FlashyTone3042 Oct 20 '26

Whoa. Thank you. I will use it. I am often manually squashing, but this is much nicer.

4

u/1000Ditto Oct 19 '26

git commit -am 'temp'

3

u/Your_Friendly_Nerd Oct 19 '26

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/v3ritas1989 Oct 20 '26

Ticket ID and headline?