Git cheat sheets are a dime-a-dozen but I think this one is awfully concise for its scope.

  • Visually covers branching (WITH the commands – rebasing the current branch can be confusing for the unfamiliar)
  • Covers reflog
  • Literally almost identical to how I use git (most sheets are either Too Much or Too Little)
  • dream_weasel@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    1 month ago

    One missing point:

    git stash $NAME lets you name a stash, and then you also can pop with that name to restore.

    Super useful if you’re doing something with plotting or presenting data and you want to try a few easy variants to see what you like most. I don’t use it all the time but it’s good to know.