简单说下怎么修改本地分支,并替换对应的远程分支
# 修改本地分支
$ git branch -m oldBranch newBranch
# 删除oldBranch远程仓库
$ git push origin :oldBranch
# 推送新的仓库至远程仓库
$ git push origin newBranch
# 建立追踪
$ git branch --set-upstream-to=origin/newBranch newBranch
ok~
简单说下怎么修改本地分支,并替换对应的远程分支
# 修改本地分支
$ git branch -m oldBranch newBranch
# 删除oldBranch远程仓库
$ git push origin :oldBranch
# 推送新的仓库至远程仓库
$ git push origin newBranch
# 建立追踪
$ git branch --set-upstream-to=origin/newBranch newBranch
ok~