标签:upstream delete git push 命令 方法 分支 rac ranch star
新建分支
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
标签:upstream delete git push 命令 方法 分支 rac ranch star
原文地址:https://www.cnblogs.com/1032473245jing/p/11376238.html