【发布时间】:2011-10-19 07:15:09
【问题描述】:
我试图弄清楚当我给出例如git pull 或git 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