Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/397.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java git pull的错误消息?_Java_Git_Version Control - Fatal编程技术网

Java git pull的错误消息?

Java git pull的错误消息?,java,git,version-control,Java,Git,Version Control,我在git工作,如果我在develope分支中执行git pull,我会得到以下错误。我如何修复此问题,使其停止 You asked me to pull without telling me which branch you want to merge with, and 'branch.develop.merge' in your configuration file does not tell me, either. Please specify which branch you want

我在
git
工作,如果我在
develope
分支中执行
git pull
,我会得到以下错误。我如何修复此问题,使其停止

You asked me to pull without telling me which branch you
want to merge with, and 'branch.develop.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:
    [branch "develop"]
    remote = <nickname>
    merge = <remote-ref>

    [remote "<nickname>"]
    url = <url>
    fetch = <refspec>

See git-config(1) for details.
你让我拉,但没有告诉我你是哪根树枝
要与合并,请在中“branch.development.merge”
您的配置文件也没有告诉我。请
指定要在命令行和命令行上使用的分支
再试一次(例如“git pull”)。
有关详细信息,请参见git pull(1)。
如果经常与同一分支合并,则可能需要
在配置文件中使用类似以下内容:
[发展处]
远程=
合并=
[远程“”]
url=
获取=
有关详细信息,请参见git配置(1)。

正如错误消息所说,您需要指定要提取的分支。例如,如果您要从远程
原点
提取分支
,则必须使用命令

git pull origin master

您可能需要设置本地分支以跟踪远程开发分支

假设您的远程设备名为origin,并且远程分支共享相同的名称,您可以通过
git branch——将upsteam设置为origin/develope


然后,您应该能够在不指定远程/分支的情况下执行
git pull
(假设已签出开发分支!)

正确的命令似乎是
git branch——将upsteam设置为开发源代码/develope