1. 程式人生 > >在eclipse中執行team->pull出現the current branch is not configured for pull

在eclipse中執行team->pull出現the current branch is not configured for pull

今天在github修改檔案之後想同步到本地工程,在eclipse中點選team–>pull時出現如下提示:
這裡寫圖片描述
解決方法:
開啟所在倉庫的.git資料夾,修改config檔案,加入如下引數:

[branch "master"]

        remote = master

        merge = refs/heads/master

    [remote "master"]

        url = github上該倉庫的地址

        fetch = +refs/heads/*:refs/remotes/origin/*