SharePoint – Enable and configure versioning

You can track and manage information over time with versioning in lists and libraries, as well as view and recover previous versions from the item’s history.

When enabled, new versions are added to an item’s history after changes are saved. The number of versions stored and the visibility of draft or minor versions can be modified for each list and library.

Source: Enable and configure versioning for a list or library