As the title says. I put the wrong value inside a clean up code and I wiped everything. I did not push any important work. I just want to cry but at least I can offer it to you.

Do not hesitate to push even if your project is in a broken state.

    • lauha@lemmy.world
      link
      fedilink
      arrow-up
      10
      ·
      1 day ago

      Version control would be quite adequate if using a sane amount of time between pushes

      • Except that one is automatically versioned and would have saved you this pain, and the other relies on you actively remembering to reflexively commit, and then do extra work to clean up your history before sharing, and once you push, it’s harder to change history and make a clean version to share.

        These days, there’s little excuse to not use COW with automated snapshots in addition to your normal, manual, VCS activities.

      • HelloRoot@lemy.lol
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        1 day ago

        I’m paranoid. I have like 5 different ways (including 3-2-1 backups) to restore everything. COW fs is great for stuff that is not a git-able project.