成功 git 拉取后,提取的分支存储在哪里?
Where is the fetched branch stored after a successful git pull?
当我执行 git pull
时,获取的分支是否存储在我的本地存储库中的任何位置?如果是,我如何引用其内容?如果不是,有没有办法让 git pull
这样做?
我知道我可以使用 git fetch
和 git merge
来实现这一点。但是,由于不值得一提的原因,如果我们可以使用 git pull
.
实现相同的目的,那将对我们真正有帮助
感谢您的帮助。
git pull
进行抓取。字面上地。它调用获取。它这样做是为了获取被拉出的尖端的历史记录。它的文档是这样说的,他们告诉你这个:
In its default mode, git pull
is shorthand for git fetch
followed by git merge FETCH_HEAD
.
More precisely, git pull
runs git fetch
with the given parameters and calls git merge
to merge the retrieved branch heads into the current branch. With --rebase
, it runs git rebase
instead of git merge
.
和 the git pull
docs 的 前两个词 不是纯粹的样板文件是“从中获取”。
所以现在还不清楚还有什么可以询问 git pull
获取的内容。
当我执行 git pull
时,获取的分支是否存储在我的本地存储库中的任何位置?如果是,我如何引用其内容?如果不是,有没有办法让 git pull
这样做?
我知道我可以使用 git fetch
和 git merge
来实现这一点。但是,由于不值得一提的原因,如果我们可以使用 git pull
.
感谢您的帮助。
git pull
进行抓取。字面上地。它调用获取。它这样做是为了获取被拉出的尖端的历史记录。它的文档是这样说的,他们告诉你这个:
In its default mode,
git pull
is shorthand forgit fetch
followed bygit merge FETCH_HEAD
.More precisely,
git pull
runsgit fetch
with the given parameters and callsgit merge
to merge the retrieved branch heads into the current branch. With--rebase
, it runsgit rebase
instead ofgit merge
.
和 the git pull
docs 的 前两个词 不是纯粹的样板文件是“从中获取”。
所以现在还不清楚还有什么可以询问 git pull
获取的内容。