了解git分支全部 [英] Understanding git branch all
问题描述
这里的箭头( - >)表示什么:
* development
master
生产
remotes / origin / HEAD - >原产/生产
遥控器/原产地/开发
遥控器/原产地/主产品
遥控器/产地/生产
我只是试图获得git的真正处理,所以我深入挖掘,发现我越走越远,我对git的了解就越少,哈哈。
- >
origin / production
意味着
remotes / origin / HEAD
指向原产地/生产
origin / HEAD
不是自包含的分支。它只是一个指向main分支的指针,即你在克隆之后得到的分支。
尝试 git symbolic-ref refs / heads / foo refs / heads / master
。之后 git branch
会显示:
foo - > master
然后 foo
master
。
What does the the arrow (->) mean here:
* development
master
production
remotes/origin/HEAD -> origin/production
remotes/origin/development
remotes/origin/master
remotes/origin/production
I'm just trying to get a real handle on git, so I'm diggin' deep and finding out that the further I go, the less I know about git, haha.
remotes/origin/HEAD
->
origin/production
means
remotes/origin/HEAD
is pointing to origin/production
origin/HEAD
is not a self-contained branch. It is just a pointer to the "main" branch, the one you get after a clone.
Try git symbolic-ref refs/heads/foo refs/heads/master
. Afterwards git branch
will show:
foo -> master
Then foo
is just another name for master
.
这篇关于了解git分支全部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!