Hacker News new | ask | show | jobs
by temeya 1004 days ago
While I've used Git a bit, and appreciate for what it is, I will admit that it's syntax is what makes it a bit difficult. If the Git commands had kept to a single metaphor, then I think that would have helped tremendously. Even now, I'm still trying to figure out the best metaphor for using Git and it's commands. So far the closest I have is a tree metaphor as follows:

Git init = tree planted

Git add and Git merge = trunk grows

Git branch = branch grows

Git merge = branch intersects

And so on. But even this falls apart once I get to Git diff and Git checkout.

1 comments

If you haven't watched the brilliant Git For Ages 4 and Up I can't recommend it more highly. I make everyone watch it on my teams and my students. https://m.youtube.com/watch?v=3m7BgIvC-uQ Git is quite simple under the hood, it's the convoluted user interface that makes it seem so difficult. Once you understand technically what the commands are doing, it's a lot easier to know which one to reach for.