r/shittyprogramming • • Apr 24 '23

Sometimes it just seems unnecessary

Post image

[removed] — view removed post

454 Upvotes

6 comments sorted by

19

u/cameronm1024 Apr 24 '23

We all know that, in reality, these 2 commits are usually separated by about 6 months

31

u/[deleted] 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

u/[deleted] Apr 24 '23

[deleted]

0

u/[deleted] 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.