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

1.修改名称

git branch -m oldbranchname newbranchname

2.追踪到新的远程分支

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

 

posted @ 2020-07-31 15:52  chyshx  阅读(1760)  评论(0编辑  收藏  举报