新建分支
1 // 新建本地分支并切换到新分支 2 git checkout -b dbg_lichen_star 3 // 推送新分支到远程 4 git push origin dbg_lichen_star:dbg_lichen_star 5 // 删除远程分支 6 // 方法一 7 git push origin :dbg_lichen_star 8 // 方法二 9 git push origin --delete dbg_lichen_star
修改分支
1 git branch -m old_branch new_branch # Rename branch locally 2 git push origin :old_branch # Delete the old branch 3 git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote