Restore a File

Roll a file back to its committed version.

A beginner Git challenge worth 3 points. Solve it hands-on in a real Git environment in your browser - no local setup, no fake shells.

The Challenge

Scenario: /tmp/repo/config.txt was committed as port=80 but is now corrupted to BROKEN (uncommitted).

Task: Restore config.txt to its committed version (git restore config.txt).