Git · Junior · Question 25 of 75
How do you delete a branch on the remote?
- 1
git branch -d origin/feature - ✓Correct answer:
git push origin --delete feature - 3
git fetch --delete feature
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.