代码之家  ›  专栏  ›  技术社区  ›  Matt McHenry

对于名为“master”的分支,git的哪些部分具有特殊/默认行为?

  •  2
  • Matt McHenry  · 技术社区  · 6 年前

    既然有 no wide agreement the semantics of master 我们正在考虑没有一个分支机构的名字 主人 在我们的 origin 服务器。

    对于内置于标准中的违约,这会产生什么后果? git 命令行客户端?它怎么对待一个叫 主人 不同于其他分支——本地和远程?

    2 回复  |  直到 6 年前
        1
  •  3
  •   chuckx    6 年前

    master 布兰奇,我想说你是清白的。

    主人


    (以下简称 git-remote.c files-backend.c 下面的输出实际上不与 分支)


    git grep git repository .

    # Look for string literals within *.c files containing "master" 
    # with 10 lines of context, excluding the t/ and contrib/ directories
    $ git grep -C 10 -E -e \".*master.*\" -- :**/*.c :^t/ :^contrib/
    
        2
  •  1
  •   A.H.    6 年前

    master

    • 空存储库中的第一个分支是在 分支。

    不是真正必要的。