在eclipse中使用git的pull功能时报错解决办法

时间:2023-12-04 11:59:56

打开项目的 .git/config文件,参照以下进行编辑

[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = https://github.com/用户名/项目名.git(即项目的git路径)
fetch = +refs/heads/*:refs/remotes/origin/*
push = +refs/heads/master:refs/heads/master