Git Hub,eclipse pull 出现问题

一般在eclise里面使用geithub,之后会出现无法pull,或者pull 报错的问题。这里需要修改本地库的配置文件

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

找到本地仓库配置文件:

1.项目右键切换到,Git Repositories视图
这里写图片描述

2.找到config配置文件,打开
这里写图片描述

3.修改config 文件如下:
(url:就是你github上的url,根据自己的项目不同,自行修改)

[branch “master”]
remote = origin
merge = refs/heads/master

[remote “origin”]
url = git@github.com:venusdrogon/feilong-platform.git
fetch = +refs/heads/:refs/remotes/origin/
push = refs/heads/master:refs/heads/master

[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true

之后就可以成功的pull.

事在人为,功不唐捐
原文地址:https://www.cnblogs.com/xinleishare/p/4378757.html