culTest

    One of the 24 questions in this topic

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

    What is the risk of doing a force push, git push -f, on a shared branch?

    Answers

    The server might go down.
    You might overwrite and erase work that teammates have already pushed to the server.Correct
    Files might be duplicated.
    There is no risk.

    Force push makes the remote accept your history, ignoring any changes you do not have locally.