【问题标题】:Git: What goes behind the sceneGit:幕后发生了什么
【发布时间】:2011-10-19 07:15:09
【问题描述】:

我试图弄清楚当我给出例如git pullgit fetch 命令时执行了哪些命令。裁判如何解决?如果我给git fetch 两个远程条目:

[remote "origin"]
  fetch = +refs/heads/*:refs/remotes/origin/*
  url = ssh://a@b.c/path/to/git
[remote "origin2"]
  fetch = +refs/heads/*:refs/remotes/origin/*
  url = ssh://a@b.c/path2/to/git
[branch "mybranch"]
  remote = origin
  merge = refs/heads/mybranch

是否获取了来自两个遥控器的所有远程跟踪分支?我可以通过给出命令来弄清楚这一点,但我希望能够看到执行了哪些确切的低级命令以及当我给出高级命令时 git 如何解析 refs。

【问题讨论】:

    标签: git


    【解决方案1】:

    here。这不是非常低级的命令描述,但它可以让您很好地全面了解正在发生的事情。

    UPD:还有there's一个类似的问题。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-07-12
    • 1970-01-01
    • 2018-03-29
    • 2019-06-05
    • 1970-01-01
    • 2010-09-06
    • 2018-12-05
    • 2016-02-23
    相关资源
    最近更新 更多