Locally deleted branch is not deleted on remote repository

This question already has an answer here:

  • How do I delete a Git branch both locally and remotely? 39 answers

  • You want to use this...

    git push remote --delete <branch-name>
    

    Although git push remote :branch should have worked. The command says push this branch without a local set, effectively deleting it.

    Are you sure the name of your remote is remote? Could it be origin? Use git remote -v to list your remotes.

    Failing that, you can delete branches using GitHub's UI.

    链接地址: http://www.djcxy.com/p/658.html

    上一篇: 完全删除裁判/遥控器

    下一篇: 本地删除的分支在远程存储库上不会被删除