r/shittyprogramming • u/sweet-potato39 • Apr 24 '23
Sometimes it just seems unnecessary
[removed] — view removed post
454
Upvotes
31
Apr 24 '23
git reset --hard HEAD^ && git push -f for the ultimate experience.
13
u/Rand_alFlagg Apr 24 '23
force pushing bad shit is a good way to prolapse your codebase
0
Apr 24 '23
[deleted]
0
Apr 25 '23
[deleted]
1
u/TimGreller Apr 25 '23
If you're working on a branch alone, yes. If not, someone else might've pulled already and your commit will appear again once they push.
3
u/romulusnr Apr 25 '23
Oh dear. I did this once at work. Then spent a week trying to figure out why everything suddenly stopped working.
19
u/cameronm1024 Apr 24 '23
We all know that, in reality, these 2 commits are usually separated by about 6 months