1.在本地工程目录找到config文件(我的是在F:\biyesheji\bysj2\.git);
2.修改config文件内容为:
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = https://github.com/ningjianguo/drivetest.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/ningjianguo/drivetest.git (修改为自己的url)
fetch = +refs/heads/*:refs/remotes/origin/*
本文介绍了如何通过修改本地Git仓库的config文件来解决与远程仓库同步的问题,具体步骤包括定位config文件位置、修改repositoryformatversion等配置项,并更新远程仓库URL及fetch策略。
16万+

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



