gpt4 book ai didi

git - [git pull] 从哪里 pull ?

转载 作者:太空狗 更新时间:2023-10-29 14:01:52 27 4
gpt4 key购买 nike

我在分支 tm-skeleton并执行 git pull 做某事(从技术上讲,它要求输入密码,然后我在那里点击了 <ctrl-c>),但我怎么知道它从哪里 pull ?通常,[branch "tm-skeleton"] .git/config 中的部分文件解释了所有这些(准确地说是 remote 变量),但是在我的配置文件中这个分支没有这样的部分。

最佳答案

你读过 git-pull 吗? Default Behaviour 下的手册?引用一个部分:

Often people use git pull without giving any parameter. Traditionally, this has been equivalent to saying git pull origin. However, when configuration branch.<name>.remote is present while on branch , that value is used instead of origin.

In order to determine what URL to use to fetch from, the value of the configuration remote.<origin>.url is consulted and if there is not any such variable, the value on URL: line in$GIT_DIR/remotes/<origin> file is used.

关于git - [git pull] 从哪里 pull ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7070941/

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