Comment

Comment by pca006132

I frequently do `git reset --hard`, knowing what I am doing, until I found that I probably need the code a few days later.

Perhaps I just need a tool to intercept this and backup the affected files somewhere. The files can be deleted after some time (a week? or never?). And when I regret doing resetting the files, I can just dig through the backup and try to find it.

parent pca006132 4 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton