解决Git报错:The current branch is not configured for pull No value for key branch.master.merge found in configuration

1、在本地工程目录找到config文件(我的是在D:gitdemo.git);
2、修改config文件内容为:

[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
url = https://github.com/luogankun/git_demo.git #对应自己git上项目的地址
fetch = +refs/heads/*:refs/remotes/origin/*
puttykeyfile = 
[branch "master"]
remote = origin
merge = refs/heads/master
View Code

3、再执行pull方法

原文地址:https://www.cnblogs.com/luogankun/p/3803809.html