eclipse egit 报错 The current branch is not configured for pull No value for key branch.master



eclipse egit 插件 pull报错 The current branch is not configured for pull No value for key branch.master

原因是缺少merge结构配置



配置文件  红色部分为缺少部分

  1. [core]
  2.     repositoryformatversion = 0
  3.     filemode = false
  4.     logallrefupdates = true
  5.     autocrlf = false
  6. [remote "dev"]
  7.     url = https://github.com/signheart/dev.git
  8.     fetch = +refs/heads/*:refs/remotes/dev/*
  9. [branch "master"]
  10.     remote = dev
  11.     merge = refs/heads/master

原文地址:https://www.cnblogs.com/signheart/p/6595535.html