How do I delete a Git branch locally and remotely?

后端 未结 30 4237
被撕碎了的回忆
被撕碎了的回忆 2020-11-21 04:11

I want to delete a branch both locally and remotely.

Failed Attempts to Delete a Remote Branch

$ git branch -d         


        
30条回答
  •  长情又很酷
    2020-11-21 04:53

    Now you can do it with the GitHub Desktop application.

    After launching the application

    1. Click on the project containing the branch
    2. Switch to the branch you would like to delete

    3. From the "Branch" menu, select, "Unpublish...", to have the branch deleted from the GitHub servers.

    4. From the "Branch" menu, select, 'Delete "branch_name"...', to have the branch deleted off of your local machine (AKA the machine you are currently working on)

提交回复
热议问题