Git · Junior · Question 25 of 75

How do you delete a branch on the remote?

Explanation

git branch -d origin/feature would only delete your local remote-tracking copy. Hosting platforms can also delete branches automatically after a pull request is merged.

Further reading

Problem with a question

Git · Junior · question 25

Test yourself

Take the Git · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz