1.在本地工程目錄找到config隱藏文件:D:\你的Git文件目錄\.git\config
2.修改config文件內容爲:
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = https://github.com/android/xxx.git (修改爲自己的url)
fetch = +refs/heads/*:refs/remotes/origin/*