culTest

    One of the 25 questions in this topic

    How much do you know about Git & GitHub: Branches and Collaboration?

    What happens if you try to delete a branch with git branch -d when it still has unmerged changes?

    Answers

    It is deleted anyway.
    Git throws an error and prevents deletion to protect your work.Correct
    The computer restarts.
    The branch is merged automatically.

    In that case you must use -D to force deletion and lose those changes.