Git fetch remote拉入新分支,但新分支不';我没有出现
我运行了这些命令,但是在运行Git fetch remote拉入新分支,但新分支不';我没有出现,git,github,Git,Github,我运行了这些命令,但是在运行git-fetch-origin之后运行git-branch时,我从Github获取的新分支没有显示: CACSVML-13295:smartconnect amills001c$ git fetch origin remote: Counting objects: 426, done. remote: Compressing objects: 100% (223/223), done. remote: Total 426 (delta 269), reused 28
git-fetch-origin
之后运行git-branch
时,我从Github获取的新分支没有显示:
CACSVML-13295:smartconnect amills001c$ git fetch origin
remote: Counting objects: 426, done.
remote: Compressing objects: 100% (223/223), done.
remote: Total 426 (delta 269), reused 287 (delta 188)
Receiving objects: 100% (426/426), 113.77 KiB | 76.00 KiB/s, done.
Resolving deltas: 100% (269/269), done.
From github.csv.comcast.com:Baymax/smartconnect
* [new branch] enrichmentasync-module -> origin/enrichmentasync-module
* [new branch] github_master_now -> origin/github_master_now
* [new branch] master_next_localMermoryCache -> origin/master_next_localMermoryCache
* [new tag] 0.0.4 -> 0.0.4
* [new tag] 0.0.5 -> 0.0.5
CACSVML-13295:smartconnect amills001c$ git branch
github_master_now
master
* master_next
master_with_quick_fix_for_prod
mocha_deep_test
priya_testing_branch
当我运行
git branch
命令时,是否有充分的理由可以解释清楚地从远程(源站)获取的新分支没有出现?它将作为远程跟踪分支关闭该分支
origin/<branchname>
如果您想在其中工作,您应该从中创建一个同名的本地分支
git checkout -b <branchname> origin/<branchname>
git签出-b源/
(在某些版本的Git中,您可能只需要
Git签出,Git就会发现您想要从远程跟踪分支创建新的本地分支)Git branch-r
-您是否包括-r
?如上所述,Git branch-r
显示远程分支,但这只是远程分支。您可以使用git branch-a
列出所有本地和远程分支。
git checkout -b <branchname> origin/<branchname>