How do I strip branches from a git repository?

This question already has an answer here:

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

  • Delete the remote branch

    git push <remote name> --delete <branch name>
    

    Now others need to prune their tracking branches

    git fetch --prune <remote name>
    

    Delete the local branch

    git branch -D <branch name>
    
    链接地址: http://www.djcxy.com/p/662.html

    上一篇: 如何从Git中删除无效的远程分支引用?

    下一篇: 我如何从git仓库剥离分支?