culTest

    One of the 100 questions in this topic

    How much do you know about Git and Version Control?

    Which method is used to revert a commit?

    Answers

    git rollback <commit_id>
    git revert <commit_id>Correct
    git undo <commit_id>
    git reset <commit_id>

    git revert <commit_id> creates a new commit that undoes the changes made by the specified commit.