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)
  • Modern_medicine_isnt@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Missing the “oh shit need to fix this other thing but I am in the middle of a big change,” flow. I use git stash, but I wish I could include files that haven’t been added and I wish it could be tied to the branch

    • nik9000@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      I’ve stopped using stash and mostly just commit to my working branch. I can squah that commit away if I want later. But we squash before merge so it doesn’t tend to be worth it.

      It’s just less things to remember.