this post was submitted on 20 Nov 2024
876 points (97.6% liked)

Programmer Humor

19630 readers
1217 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
(page 3) 50 comments
sorted by: hot top controversial new old
[–] jlow@beehaw.org 29 points 2 days ago (1 children)

Backups, backups, backups.

load more comments (1 replies)
[–] FreakinSteve@lemmy.world 12 points 2 days ago

Jesus saves, and so should you

[–] Michal@programming.dev 5 points 1 day ago (7 children)

If the files were already staged then git should have blobs in the git folder, so they should be recoverable.

[–] JackbyDev@programming.dev 3 points 1 day ago

Did you read the thread? There was a bug that deleted all files even ones unassociated with git.

load more comments (6 replies)
[–] cupcakezealot@lemmy.blahaj.zone 1 points 1 day ago* (last edited 1 day ago)

i mean doesn't it just integrate with explorer/tortoisegit so all the files would go to the recycle bin anyway?

either that or this: https://stackoverflow.com/a/72695095

Step 1: Enter Ctrl + Shift + P on VSC

Step 2: Choose the option "Local History: Find Entry to Restore"

Step 3: Find the file which you want to restore

Step 4: Choose a time you save that file

Step 5: Copy file content and restore it

[–] riodoro1@lemmy.world 18 points 2 days ago (3 children)

Typical web developer. He didn’t even know files can be deleted without going into „recycle bin”

load more comments (3 replies)
load more comments
view more: ‹ prev next ›