Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with.

Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with.

Scheduled Pinned Locked Moved Uncategorized
14 Posts 7 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • mmeier@social.mei-home.netM This user is from outside of this forum
    mmeier@social.mei-home.netM This user is from outside of this forum
    mmeier@social.mei-home.net
    wrote last edited by
    #1

    Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with. 😠

    wq@vim.wtfW rachel@transitory.socialR stefan@social.stefanberger.netS 3 Replies Last reply
    0
    • mmeier@social.mei-home.netM mmeier@social.mei-home.net

      Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with. 😠

      wq@vim.wtfW This user is from outside of this forum
      wq@vim.wtfW This user is from outside of this forum
      wq@vim.wtf
      wrote last edited by
      #2

      @mmeier Ah, git trash.

      mmeier@social.mei-home.netM 1 Reply Last reply
      0
      • mmeier@social.mei-home.netM mmeier@social.mei-home.net

        Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with. 😠

        rachel@transitory.socialR This user is from outside of this forum
        rachel@transitory.socialR This user is from outside of this forum
        rachel@transitory.social
        wrote last edited by
        #3

        @mmeier@social.mei-home.net oof ​​

        1 Reply Last reply
        0
        • wq@vim.wtfW wq@vim.wtf

          @mmeier Ah, git trash.

          mmeier@social.mei-home.netM This user is from outside of this forum
          mmeier@social.mei-home.netM This user is from outside of this forum
          mmeier@social.mei-home.net
          wrote last edited by
          #4

          @wq Turns out no, issue was purely with Magit. It's "stash" commands don't actually use stash in the background.

          Instead, it runs command like this:

          0 git … update-ref --create-reflog -m On\ user-creation\:\ 2268f86\ DB\ testing\:\ Introduce\ helper\ for\ migrating\ up refs/stash 25b55a5b648b1703eb8bb89117d61cc16f6e2d6f ''

          Followed by a git clean.

          WTAF?!

          james@social.wynning.techJ 1 Reply Last reply
          0
          • mmeier@social.mei-home.netM mmeier@social.mei-home.net

            @wq Turns out no, issue was purely with Magit. It's "stash" commands don't actually use stash in the background.

            Instead, it runs command like this:

            0 git … update-ref --create-reflog -m On\ user-creation\:\ 2268f86\ DB\ testing\:\ Introduce\ helper\ for\ migrating\ up refs/stash 25b55a5b648b1703eb8bb89117d61cc16f6e2d6f ''

            Followed by a git clean.

            WTAF?!

            james@social.wynning.techJ This user is from outside of this forum
            james@social.wynning.techJ This user is from outside of this forum
            james@social.wynning.tech
            wrote last edited by
            #5

            @mmeier @wq
            Yikes. Crap like this is why I've always just used git on the CLI.

            mmeier@social.mei-home.netM 1 Reply Last reply
            0
            • mmeier@social.mei-home.netM mmeier@social.mei-home.net

              Guess who just nuked the work of about an hour with a git stash command he doesn't even know what he did wrong with. 😠

              stefan@social.stefanberger.netS This user is from outside of this forum
              stefan@social.stefanberger.netS This user is from outside of this forum
              stefan@social.stefanberger.net
              wrote last edited by
              #6

              @mmeier oh no! No scheduled restic backup or so in place?

              Hope you can recover some things at least partially, maybe from brain memory

              mmeier@social.mei-home.netM 1 Reply Last reply
              0
              • james@social.wynning.techJ james@social.wynning.tech

                @mmeier @wq
                Yikes. Crap like this is why I've always just used git on the CLI.

                mmeier@social.mei-home.netM This user is from outside of this forum
                mmeier@social.mei-home.netM This user is from outside of this forum
                mmeier@social.mei-home.net
                wrote last edited by
                #7

                @james
                Yeah, I was also really confused. I don't use stashes too often, but I was pretty sure that I knew how they worked. And that they actually did store unversioned files with the "-u" flag. Took me quite a bit to realize that Magit was doing some weird stuff in the background and that's why stash was working differently than the command line variant.

                @wq

                1 Reply Last reply
                0
                • stefan@social.stefanberger.netS stefan@social.stefanberger.net

                  @mmeier oh no! No scheduled restic backup or so in place?

                  Hope you can recover some things at least partially, maybe from brain memory

                  mmeier@social.mei-home.netM This user is from outside of this forum
                  mmeier@social.mei-home.netM This user is from outside of this forum
                  mmeier@social.mei-home.net
                  wrote last edited by
                  #8

                  @stefan No, sadly. I only do daily backups of my home dir, so that hour was lost. Luckily, I still had the file with the test code open, and that gave me enough of a memory crutch to reproduce everything I had written reasonably quickly.

                  stefan@social.stefanberger.netS 1 Reply Last reply
                  0
                  • mmeier@social.mei-home.netM mmeier@social.mei-home.net

                    @stefan No, sadly. I only do daily backups of my home dir, so that hour was lost. Luckily, I still had the file with the test code open, and that gave me enough of a memory crutch to reproduce everything I had written reasonably quickly.

                    stefan@social.stefanberger.netS This user is from outside of this forum
                    stefan@social.stefanberger.netS This user is from outside of this forum
                    stefan@social.stefanberger.net
                    wrote last edited by
                    #9

                    @mmeier good to read. 👍 btw. what are you using for your home dir backup?

                    I‘m using restic or on the Mac ArqBackup

                    mmeier@social.mei-home.netM 1 Reply Last reply
                    0
                    • stefan@social.stefanberger.netS stefan@social.stefanberger.net

                      @mmeier good to read. 👍 btw. what are you using for your home dir backup?

                      I‘m using restic or on the Mac ArqBackup

                      mmeier@social.mei-home.netM This user is from outside of this forum
                      mmeier@social.mei-home.netM This user is from outside of this forum
                      mmeier@social.mei-home.net
                      wrote last edited by
                      #10

                      @stefan Yupp, exactly the same for me. I'm using restic for both, my home dir and all of my Homelab backups. In the first stage, everything gets backed up into S3 buckets on my Ceph storage cluster, one bucket per Homelab app and per host, currently my desktop and laptop, which both get not only the home but also /etc backed up, because I've got neither under Ansible.

                      Do you do offsite backups? That's currently still entirely missing for me, besides my unencrypted pw manager in a bank vault.

                      stefan@social.stefanberger.netS 1 Reply Last reply
                      0
                      • mmeier@social.mei-home.netM mmeier@social.mei-home.net

                        @stefan Yupp, exactly the same for me. I'm using restic for both, my home dir and all of my Homelab backups. In the first stage, everything gets backed up into S3 buckets on my Ceph storage cluster, one bucket per Homelab app and per host, currently my desktop and laptop, which both get not only the home but also /etc backed up, because I've got neither under Ansible.

                        Do you do offsite backups? That's currently still entirely missing for me, besides my unencrypted pw manager in a bank vault.

                        stefan@social.stefanberger.netS This user is from outside of this forum
                        stefan@social.stefanberger.netS This user is from outside of this forum
                        stefan@social.stefanberger.net
                        wrote last edited by
                        #11

                        @mmeier sounds good. Everything gets backed up to my Synology NAS. From there I do encrypted backups to a cheap hetzner storagebox in Germany via the built-in Hyperbackup.

                        was using Wasabi S3 storage for some years before switching to Hetzner.

                        Link Preview Image
                        Storage Box: Günstiger Online Speicher und Datenarchivierung

                        Günstigen Online Speicher von Hetzner: Perfekt für Backup Speicher und Datenarchivierung ✓ höchste Sicherheit ✓ DSGVO-konform ✓ 100 % grüne Energie

                        favicon

                        (www.hetzner.com)

                        mmeier@social.mei-home.netM 1 Reply Last reply
                        0
                        • stefan@social.stefanberger.netS stefan@social.stefanberger.net

                          @mmeier sounds good. Everything gets backed up to my Synology NAS. From there I do encrypted backups to a cheap hetzner storagebox in Germany via the built-in Hyperbackup.

                          was using Wasabi S3 storage for some years before switching to Hetzner.

                          Link Preview Image
                          Storage Box: Günstiger Online Speicher und Datenarchivierung

                          Günstigen Online Speicher von Hetzner: Perfekt für Backup Speicher und Datenarchivierung ✓ höchste Sicherheit ✓ DSGVO-konform ✓ 100 % grüne Energie

                          favicon

                          (www.hetzner.com)

                          mmeier@social.mei-home.netM This user is from outside of this forum
                          mmeier@social.mei-home.netM This user is from outside of this forum
                          mmeier@social.mei-home.net
                          wrote last edited by
                          #12

                          @stefan Are you happy with the storagebox? It's at the top of my for when I finally get around to implementing offsite backups.

                          baloux@social.tchncs.deB waffles@masto.yttrx.comW 2 Replies Last reply
                          0
                          • mmeier@social.mei-home.netM mmeier@social.mei-home.net

                            @stefan Are you happy with the storagebox? It's at the top of my for when I finally get around to implementing offsite backups.

                            baloux@social.tchncs.deB This user is from outside of this forum
                            baloux@social.tchncs.deB This user is from outside of this forum
                            baloux@social.tchncs.de
                            wrote last edited by
                            #13

                            @mmeier @stefan Hab auch eine und bin happy seit mehreren Jahren.

                            1 Reply Last reply
                            0
                            • mmeier@social.mei-home.netM mmeier@social.mei-home.net

                              @stefan Are you happy with the storagebox? It's at the top of my for when I finally get around to implementing offsite backups.

                              waffles@masto.yttrx.comW This user is from outside of this forum
                              waffles@masto.yttrx.comW This user is from outside of this forum
                              waffles@masto.yttrx.com
                              wrote last edited by
                              #14

                              @mmeier @stefan I’ve been using hetzners storage box for a few years and so far no complaints. I’m only backup up 0.5TB but so far so good.

                              I have multiple physical NAS machines at my place already, so I just needed a “oh man water damage destroyed everything” scenario handled.

                              1 Reply Last reply
                              1
                              0
                              • R relay@relay.mycrowd.ca shared this topic
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups