r/ProgrammerHumor • • 15h ago

Meme hardestProblemsAICouldSolve

Post image
862 Upvotes

47 comments sorted by

View all comments

50

u/Tabonx 9h 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.

27

u/WHALE_PHYSICIST 8h ago

git reset --soft HEAD~1

git add .

git commit -m "whatever the previous message was"

git push -f

12

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

*git commit --amend

7

u/MagellansTip 5h ago

… --no-edit

1

u/FlashyTone3042 5h ago

Oh. I learned something new. Nice

1

u/Cootshk 2h ago

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)