• exu@feditown.com
    link
    fedilink
    English
    arrow-up
    11
    ·
    15 hours ago

    Make your changes in a new branch and rebase/squash when you push it to main.

    • IronKrill@lemmy.ca
      link
      fedilink
      arrow-up
      4
      ·
      12 hours ago

      This also means modifying your git pull command to pull the correct branch. A small change perhaps, but may be harder than just committing to main lol.

      I had a similar problem with GitHub actions, it was hard to test without messing up the main repo history.