File history and restoring a version

Every file has a history of commits; any version can be opened, compared with the current one and brought back with a new commit.

Updated Copy as Markdown
In this article

Open the history#

On the file page press History. The list shows the commits that changed the file: message, author, time. Each version has Open the commit and Compare with current version.

Restore a version#

Open the old version and restore it. The version comes back as a new commit — the history is kept whole, nothing is rewritten. That is how any mistake is undone.

History of the whole repository#

The commits page (/{owner}/{name}/commits/{branch}) shows the history of the whole branch. A commit shows the list of changed files and a line-by-line diff. See Commits.

Was this helpful?