culTest

    One of the 100 questions in this topic

    How much do you know about Git and Version Control?

    Which command is used to delete a local branch in Git?

    Answers

    git remove <branch_name>
    git branch -d <branch_name>Correct
    git delete <branch_name>
    git branch -r <branch_name>

    To delete a local branch, you use the git branch -d <branch_name> command.