git日志装饰起源/ HEAD [英] git log decoration origin/HEAD
本文介绍了git日志装饰起源/ HEAD的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有两个项目存储库。
当我运行 git log --oneline --decorate --graph
中,每个显示(HEAD,origin / dev,origin / HEAD,dev)
,另一个显示(HEAD,origin / dev,dev )
。
When I run git log --oneline --decorate --graph
in each, one shows (HEAD, origin/dev, origin/HEAD, dev)
and the other shows (HEAD, origin/dev, dev)
.
在这两种情况下, dev
都是默认分支。为什么 origin / HEAD
显示在一个而不是另一个中?为了让 origin / HEAD
出现或不出现,我们做了什么?
In both cases, dev
is the default branch. Why does origin/HEAD
show in one and not the other? What does one do to make origin/HEAD
appear or not appear?
推荐答案
在 origin / HEAD
如何设置?,它会自动设置在 git clone
。
这意味着:
- 或者你的第二个仓库没有被克隆(但是初始化为空,增加了一个远程仓库并被提取)
- 或者有一些rebase使得origin / HEAD不可见。
尝试(查看全部提交)a:git log --oneline --decorate --graph --all --branches
- either your second repo wasn't cloned (but initialized empty, added a remote and fetched)
- or there was some rebase which makes origin/HEAD not visible.
Try (to see all commits) a:git log --oneline --decorate --graph --all --branches
这篇关于git日志装饰起源/ HEAD的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文