Github - 当前分支未配置为拉配置中找到的key branch.master.merge没有值

Moh*_*din 1 eclipse github

当我从github拉回这个回购时,我收到了这个错误.- https://github.com/datomnurdin/worklight-mobile

错误信息

The current branch is not configured for pull 
No value for key branch.master.merge found in configuration
Run Code Online (Sandbox Code Playgroud)

Chr*_*ris 6

你没有告诉Git哪个远程分支合并到你当前的分支.让我们假设你在一个被叫的分支上feature,你想从中拉出来origin/feature.

运行

git branch -u origin/feature feature
Run Code Online (Sandbox Code Playgroud)

将设置origin/feature为您当地feature分支的"上游分支" .

在你的.git/config,你现在应该看到这样的事情(注意merge行):

[branch "feature"]
        remote = origin
        merge = refs/heads/feature
Run Code Online (Sandbox Code Playgroud)

现在你应该可以pull自动从中获取它.