This morning I was attempting to customize DoorKeeper. After an hour of prodding I wanted to wipe all my changes.
1. Git checkout .
* removes changes to known files
2. Git clean -fd
* Removes unchanged files and directories
Except that’s not what I ran. I ran clean with the flags ‘fdx’ which also removes hidden files. So I lost all my .env and config files. Sure I could spend the next hour or two hunting those down.
I though Time Machine tracked these files but I didn’t see them. Silver Bay Tech has a simple blog to follow along and have Time Machine restore these files.
Thanks Silver Bay!