1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
//create new branch git checkout -b NewBranchName //See all branch information git branch -av //Delete local branch only git branch -d BranchName //Delete remote branch on git git branch -av master ef20177 add abc * newBranch 0c1d821 add 123 remotes/origin/master ef20177 add abc remotes/origin/newBranch 0c1d821 add 123 //Don't stay at the branch that you want to delete it, please checkout to another branch git checkout master //Then delete it git push origin --delete newBranch |