当前分支未配置为配置中找到的键branch.master.merge的拉否值 [英] The current branch is not configured for pull No value for key branch.master.merge found in configuration

查看:927
本文介绍了当前分支未配置为配置中找到的键branch.master.merge的拉否值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

拉我


当前分支未配置为pull
中没有值$ b branch.master.merge在配置中找到



解决方案

您的本地主分支未设置为跟踪远程主分支。



您可以执行 git pull origin master 来告诉git你想拉的显式分支,或者你添加到你的.git / config:

  [branchmaster] 
remote = origin
merge = refs / heads / master

当你推主人首次添加 -u switch( git push -u origin master )。这将自动设置所有内容。


I get this error when I try to pull from remote repository using Egit team>pull

The current branch is not configured for pull No value for key branch.master.merge found in configuration

解决方案

Your local master branch is not set up to track remote master branch.

You could do git pull origin master to tell git the explicit branch you want to pull or you add this to your .git/config:

[branch "master"]
  remote = origin
  merge = refs/heads/master

When you push to master for the first time, add the -u switch (git push -u origin master). This will set everything up automatically.

这篇关于当前分支未配置为配置中找到的键branch.master.merge的拉否值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆