• exu@feditown.com
    link
    fedilink
    English
    arrow-up
    12
    arrow-down
    1
    ·
    2 days ago

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

    • IronKrill@lemmy.ca
      link
      fedilink
      arrow-up
      6
      ·
      2 days 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.