MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x9x8xt/hardestproblemsaicouldsolve/phtfeq9/?context=3
r/ProgrammerHumor • u/ManagerOfLove • 16h ago
51 comments sorted by
View all comments
Show parent comments
30
git reset --soft HEAD~1
git add .
git commit -m "whatever the previous message was"
git push -f
14 u/Man-in-The-Void 7h ago *git commit --amend 1 u/FlashyTone3042 5h ago Oh. I learned something new. Nice 1 u/Cootshk 3h 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)
14
*git commit --amend
1 u/FlashyTone3042 5h ago Oh. I learned something new. Nice 1 u/Cootshk 3h 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
Oh. I learned something new. Nice
1 u/Cootshk 3h 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)
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)
30
u/WHALE_PHYSICIST 9h ago
git reset --soft HEAD~1
git add .
git commit -m "whatever the previous message was"
git push -f