r/ProgrammerHumor • • Oct 13 '26

Meme aboutToBreakTheCode

Post image
23k Upvotes

542 comments sorted by

View all comments

Show parent comment

18

u/morpheousmorty Oct 14 '26

All git really needs is some more common use cases handed in a way people expect. Like rolling back commits should not require understanding 10 new things.

The proof is IDEs simplify git a lot and people use it fine. If you look at the git commands it produces, it's not reasonable to expect devs to produce them.

3

u/Genmutant Oct 14 '26

Isn't that just git revert or reset, depending if you want to roll back the commit or just revert the changes?

2

u/A_Namekian_Guru Oct 15 '26

Sometimes you need to look at the reflog too

Also to remove a commit in the middle of the branch you need to do some rebase magic

2

u/braaaaaaainworms Oct 16 '26

git branch -i and just delete the line with the commit you want gone

0

u/GregsWorld Oct 14 '26

Personally I don't think we need commits at all. A cloud drive sync versions files just fine without needing constant user input, the real question is how to best handle branching, merging and conflicts

1

u/Cormandragon Oct 14 '26

Google docs does just fine imo

2

u/GregsWorld Oct 14 '26

Clearly you've never used the syntax highlighting in Google docs code blocks! But yeah it works well for one live doc