When I got to the part about 'irreplaceable NFTs' I had a little internal chuckle, aren't they all irreplaceable? Tough story though even though I don't do crypto at all, I understand tech errors, I've committed a personal token that had to be rotated before.
> 5. This is probably the most impactful, but also the most understandable bit of stupidity: I copied files into my new repo by doing cp -r ./old-repo/* ./new-repo, which ignores hidden files (like .gitignore). Oops.
I now do the sequence: (1) cp the .git subdir to the new project dir, (2) git reset in the new project, (3) rm the .git in the new folder for fresh committing into a new repo.
They are all irreplaceable, but some are more irreplaceable than others . It's like how I can always buy a new car, but I can't buy a new family heirloom.
> 5. This is probably the most impactful, but also the most understandable bit of stupidity: I copied files into my new repo by doing cp -r ./old-repo/* ./new-repo, which ignores hidden files (like .gitignore). Oops.
I now do the sequence: (1) cp the .git subdir to the new project dir, (2) git reset in the new project, (3) rm the .git in the new folder for fresh committing into a new repo.