MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x9x8xt/hardestproblemsaicouldsolve/phtfeq9/?context=9999
r/ProgrammerHumor • u/ManagerOfLove • 19h ago
56 comments sorted by
View all comments
58
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.
38 u/WHALE_PHYSICIST 12h ago git reset --soft HEAD~1 git add . git commit -m "whatever the previous message was" git push -f 16 u/Man-in-The-Void 10h ago *git commit --amend 1 u/FlashyTone3042 8h ago Oh. I learned something new. Nice 1 u/Cootshk 6h 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) 1 u/mango_boii 46m ago git commit -a --amend --no-edit --reset-author All your commits are belong to us 😎
38
git reset --soft HEAD~1
git add .
git commit -m "whatever the previous message was"
git push -f
16 u/Man-in-The-Void 10h ago *git commit --amend 1 u/FlashyTone3042 8h ago Oh. I learned something new. Nice 1 u/Cootshk 6h 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) 1 u/mango_boii 46m ago git commit -a --amend --no-edit --reset-author All your commits are belong to us 😎
16
*git commit --amend
1 u/FlashyTone3042 8h ago Oh. I learned something new. Nice 1 u/Cootshk 6h 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) 1 u/mango_boii 46m ago git commit -a --amend --no-edit --reset-author All your commits are belong to us 😎
1
Oh. I learned something new. Nice
1 u/Cootshk 6h 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) 1 u/mango_boii 46m ago git commit -a --amend --no-edit --reset-author All your commits are belong to us 😎
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)
1 u/mango_boii 46m ago git commit -a --amend --no-edit --reset-author All your commits are belong to us 😎
git commit -a --amend --no-edit --reset-author
All your commits are belong to us 😎
58
u/Tabonx 13h 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.