culTest

    One of the 100 questions in this topic

    How much do you know about Git and Version Control?

    Which command is used to restore files from an earlier commit?

    Answers

    git revert <commit_id>
    git restore <file_name>Correct
    git reset <HEAD>
    git checkout <commit_id>

    The git restore <file_name> command is used to restore file versions from earlier commits.