Eclipse git 錯誤:The current branch is not configured for pull

1.在本地工程目錄找到config隱藏文件:D:\你的Git文件目錄\.git\config

2.修改config文件內容爲:

[core]
    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/*

3.再執行pull方法,發現工作ok了

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章