culTest

    One of the 24 questions in this topic

    How much do you know about Git & GitHub: History Engineering and Automation?

    What does git revert <hash> do?

    Answers

    It deletes the commit from history.
    It creates a new commit that exactly undoes the changes introduced by the specified commit.Correct
    It goes back to the previous version and deletes everything new.
    It restarts the repository.

    It is the safe way to undo changes on public branches without rewriting history.