Windows offers a useful feature with the file history. But there are a few hurdles, so that it is useful for developers.
The file history of Windows backups regularly, e.g. every hour, all changed files to a second drive. The file properties dialog in Windows Explorer has the tab "Previous Versions" . The regularly backed up old file versions are listed there. An old version of a file can be restored.
How can for an arbitrary folder the history be enabled, e.g. 'C:\Projects'?