1、在本地工程目录找到config文件(我的是在D:\git\demo\.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
3、再执行pull方法