Git删除本地分支和远程分支
1.删除本地分支:
1.1.查看本地分支列表
wz@DESKTOP-GM1MLGU MINGW64 /f/MyProject/java/myGit/demo (develop) $ git branch
* develop
master
1.2.删除本地分支
wz@DESKTOP-GM1MLGU MINGW64 /f/MyProject/java/myGit/demo (develop) $ git branch -d 分支名
2.删除远程分支:
2.1.查看远程分支列表
wz@DESKTOP-GM1MLGU MINGW64 /f/MyProject/java/myGit/demo (develop) $ git branch -a
2.2.删除远程分支
wz@DESKTOP-GM1MLGU MINGW64 /f/MyProject/java/myGit/demo (develop) $ git push origin --delete 远程分支名