Git Topics (4)Tap to switch
    Git·Version Control·Topic 3 of 4

    Git History & Recovery Interview Questions

    Interview questions about recovering lost modifications in Git, Detached HEAD cases, comparison of Reset, Revert, and Restore commands, and Reflog.

    2 Questions1 Intermediate1 Advanced
    Q #1Intermediate
    #git-reset-soft-mixed-hard-vs-revert

    Compare the three git reset command levels (--soft, --mixed, and --hard), and what is the fundamental difference between Reset and Revert?

    Think through your answer before revealing
    Q #2Advanced
    #git-reflog-detached-head-rescue

    What is the case of Detached HEAD, and how can git reflog rescue lost commits after a false reset?

    Think through your answer before revealing
    Offline · Reading cached copy