Version Control
Version Control allows you to keep different "versions" of files and folders. There are many different kinds of Version Control Systems with many being free. Version Control allows for a global undo that is not kept within the source editor and persists across sessions and file types.