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.

  • tias@discuss.tchncs.de
    link
    fedilink
    arrow-up
    5
    ·
    22 hours ago

    I keep my git clone in Dropbox so I can revert accidental delete and always have the most recent code on all devices without having to remember to commit and push. If it requires manual execution I wouldn’t really consider it a proper backup solution.

    • dave@feddit.uk
      link
      fedilink
      English
      arrow-up
      2
      ·
      15 hours ago

      I have been burnt by Dropbox in the past so now use Syncthing between my desktop, laptop, and a private remote server with file versioning turned on. Trivial to global ignore node_modules, and not giving data to a third party.

      It’s saved me on several occasions.

    • blackbirdbiryani@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      15 hours ago

      I use Dropbox too. Though I have to admit, when running code you sometimes have to pause sync otherwise it interferes with code execution. But definitely worth the peace of mind. Sometimes you don’t want to commit stuff until you’re sure that it works.