Deleting a Remote Branch
Task
Delete the foo branch from the remote repository origin.
Requirements
- Delete specifically the remote
foobranch. - Do not change the local
mainor the remotemain. - Use the delete refspec with push.
Expected result
The foo branch must disappear on origin, and the local pointer o/foo must be removed. The other branches must be preserved.
What you will learn
After completing this task you will be able to:
- delete remote branches;
- understand the special refspec with an empty source;
- distinguish deleting a branch on origin from deleting a local branch.
Goal
local
origin