Git拉取远程新分支

1.查看本地分支  git branch

2.查看远程分支  git branch -a

3.如果要拉取的远程分支本地没有 git fetch

4.拉取远程新分支到本地 git checkout -b 本地分支名称 origin/远程分支名称

5.直接切换分支 git checkout 分支名称

posted @ 2022-03-28 17:13  HZX↑  阅读(3295)  评论(0编辑  收藏  举报