culTest

    One of the 24 questions in this topic

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

    What does the git rebase -i HEAD~3 command do?

    Answers

    It deletes the last 3 commits.
    It starts an interactive session to edit, combine, or reorder the last 3 commits.Correct
    It uploads the last 3 commits to GitHub.
    It creates 3 new branches.

    The -i flag, interactive, is the most powerful tool for cleaning up history.