1.在本地工程目录找到config文件(我的是在E:\rocket\rocket\.git);
2.修改config文件内容为:
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = https://github.com/androidzhaoxiaogang/rocket.git (修改为自己的url)
fetch = +refs/heads/*:refs/remotes/origin/*
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = https://github.com/androidzhaoxiaogang/rocket.git (修改为自己的url)
fetch = +refs/heads/*:refs/remotes/origin/*
本文介绍了如何通过修改本地Git仓库的config文件来解决与远程仓库同步的问题,具体步骤包括定位config文件位置、修改远程仓库URL及fetch配置,并最终完成pull操作。
2125

被折叠的 条评论
为什么被折叠?



