gpt4 book ai didi

Git refs - 为什么它被称为头而不是分支?

转载 作者:行者123 更新时间:2023-12-05 03:58:27 27 4
gpt4 key购买 nike

当你查看 git/refs 目录时只是好奇:

.git/refs/heads
.git/refs/tags

为什么叫 refs/heads 而不是 refs/branches?

最佳答案

can you give example of heads that are not branches?

A detached head不是分支。
但是所有分支都由 HEAD 引用,作为对其分支最后一次提交的直接引用。

关于Git refs - 为什么它被称为头而不是分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57964295/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com