1. 下载安装git管理工具
2. 进入项目根目录(含.git文件夹)使用bash运行git命令
3. > git checkout the_local_branch // 切换到本地分支
4. > git branch -d?the_local_branch // 删除本地分支的所用记录
5. >?git branch -D?the_local_branch // 上面执行有问题,需要-D强制删除
6. > git push origin?:the_remote_branch // 删除远程分支
7. 至此该分支的所有记录都被完全删除了