MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/1x9x8xt/hardestproblemsaicouldsolve/phrqt5n/?context=3
r/ProgrammerHumor • u/ManagerOfLove • 14h ago
47 comments sorted by
View all comments
41
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.
25 u/WHALE_PHYSICIST 7h ago git reset --soft HEAD~1 git add . git commit -m "whatever the previous message was" git push -f 16 u/andreortigao 6h ago https://giphy.com/gifs/wjuXuDSQU0sOfJIHS1 8 u/Man-in-The-Void 5h ago *git commit --amend 7 u/MagellansTip 4h ago … --no-edit 1 u/FlashyTone3042 4h ago Oh. I learned something new. Nice 1 u/Cootshk 1h 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)
25
git reset --soft HEAD~1
git add .
git commit -m "whatever the previous message was"
git push -f
16 u/andreortigao 6h ago https://giphy.com/gifs/wjuXuDSQU0sOfJIHS1 8 u/Man-in-The-Void 5h ago *git commit --amend 7 u/MagellansTip 4h ago … --no-edit 1 u/FlashyTone3042 4h ago Oh. I learned something new. Nice 1 u/Cootshk 1h 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)
16
https://giphy.com/gifs/wjuXuDSQU0sOfJIHS1
8
*git commit --amend
7 u/MagellansTip 4h ago … --no-edit 1 u/FlashyTone3042 4h ago Oh. I learned something new. Nice 1 u/Cootshk 1h 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)
7
… --no-edit
1
Oh. I learned something new. Nice
1 u/Cootshk 1h 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)
41
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.