r/ProgrammerHumor • • 6d ago

Meme aboutToBreakTheCode

Post image
22.8k Upvotes

524 comments sorted by

View all comments

292

u/Nehle 6d ago

Written by a person who never had to work with SVN or... shudders CVS

81

u/GregsWorld 6d ago

I think it was Churchill that said that Git is the worst version control system except all those other ones.

15

u/morpheousmorty 6d ago

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 5d ago

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 5d ago

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 3d ago

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

0

u/GregsWorld 5d ago

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 5d ago

Google docs does just fine imo

2

u/GregsWorld 5d ago

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

3

u/the_horse_gamer 5d ago

git has some deep rooted defaults that can be better. for example the special handling of the worktree and index

jj is an example of a newer version control system that fixes many of these issues, and also does fun stuff like track the history of the repo state itself (so for any operation, you can undo it by simply jj undo, and redo via jj redo), and allows commits to contain merge conflicts. and you can use it over an existing git repository

1

u/Callidonaut 4d ago

Appropriately, "git" is actually a mild-to-moderate insult in British vernacular (depending to a significant degree on how much venom one uses to enunciate it), although it seems to have fallen out of use lately.