Story time…

  • magic_lobster_party@kbin.run
    link
    fedilink
    arrow-up
    4
    ·
    8 months ago

    When I learned about the reflog. I became less afraid of my changes when I knew I could easily recover from my errors. This allowed me to experiment more with git and become more proficient in it.

    Another aha moment was learning that an easy way to squash commits is just to do a git reset followed by git commit -am “whatever”

    • TechNom (nobody)@programming.dev
      link
      fedilink
      English
      arrow-up
      2
      ·
      8 months ago

      Another aha moment was learning that an easy way to squash commits is just to do a git reset followed by git commit -am “whatever”

      You can do that in a single step instead with git commit -a --amend.