git命令备忘

查看远程与本地所有分支

git branch -a 

拉取远程分支到本地

git checkout -b  '车管家' remotes/origin/车管家

 切换分支

git checkout -f test 

 

修改远程分支名称

git push --set-upstream origin newName

  

原文地址:https://www.cnblogs.com/blog-dyn/p/14752465.html