This local history has saved my bacon on occasion. E.g. when I went too long without committing and something silly overwrote the file I was working on. Or because I did something silly with git. Then it is nice that there is still an independent backup elsewhere with different failure modes.
The whole point is that sometimes I or the build system performs an action that it cannot reverse. This happens in between commits as I’m not in the habit of committing after every few keystrokes.
[deleted] · · focus · HN ↗
[deleted]
spockz · · focus · HN ↗
exe34 · · focus · HN ↗
spockz · · focus · HN ↗
Also I’ve had formatters botch files including changes I hadn’t committed yet. For that the local edit history is also useful.
exe34 · · focus · HN ↗
spockz · · focus · HN ↗