Interactive Git Cheatsheet

  • I'm not criticizing the cheatsheet and can see how it can help but if I may point out 2 possible points of confusion for Git novices:

    If the conceptual boxes of "stash", "workspace",...,"upstream repo" represent a left-to-right timeline of workflow, having "stash" being on the left of "workspace" is somewhat misleading. A stash point-in-time usage can be thought of in the same vertical time-alignment as "index" or "local repository".

    If the conceptual boxes represent a storage model, then stash being a separate isolated box is somewhat misleading. The stashes are actually stored in the "local repository". (E.g. an alternative diagram would show "index" and "stash" as nested boxes inside of "local repository".)

    I readily admit that spatially rearranging how "stash" is diagrammed complicates the arrows illustrating the git commands. Therefore, maybe the way the cheatsheet did it is the best compromise.

  • I understand why everyone wants git cheatsheets (there are a lot of commands), but I have yet to see a cheatsheet/etc that does little more than become a crutch.

    For better or for worse, git really demands that you learn the concepts and fundamentals. It has a steep learning curve, but it's one that easily pays dividends.

    Do I wish it were easier to learn? Of course.

    Can you substitute actually learning how git and its workflows are used with cheatsheets and quick primers? Not remotely.

    That being said, I think this one is a step in the right direction by being interactive. Something like a "git simulator" could be incredibly powerful in teaching people git.

  • This cheatsheet has been around for years. Nothing has helped me grok git better than this cheatsheet.

    Here is its Github repo: https://github.com/ndp/git-cheatsheet

  • I think they've been HN'ed. I'm guessing a stylesheet failed altogether in my browser because it's unreadable.

    wget https://ndpsoftware.com/git-cheatsheet.html#loc=workspace 0.05s user 0.01s system 0% cpu 51.874 total

  • this one is pretty funny:

    http://justinhileman.info/article/git-pretty/git-pretty.png

  • Am I missing something or is there no `git push`?

  • Looks like the site is struggling at the moment, cached version here: http://web.archive.org/web/20180914141513/https://ndpsoftwar...

  • I only recently started using 'git stash', thanks to this quick script: https://gist.github.com/Ovid/e7ddc56c4710c1baae228b7e4dd3cf7...

  • nobody has mentioned the other popular cheatsheet called github desktop?

  • it's missing git fetch and bunch of other stuff

  • This cheatsheet has almost as bad UX the git itself