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)
  • @[email protected]
    link
    fedilink
    English
    21 day ago

    Besides, we still have to use checkout for checking out a previous commit

    git switch works on commits too. I don’t think you have to use checkout anymore.

    • @foolOP
      link
      21 day ago

      Oh, you’re right. You just pass the -d detach flag. I stand corrected!