git 修改本地分支名称并跟踪到远程分支

1.修改名称

git branch -m oldbranchname newbranchname

2.追踪到新的远程分支

git branch branchname --set-upstream-to remotes/origin/branchname

原文地址:https://www.cnblogs.com/chyshx/p/13410148.html