在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/*

猜你喜欢

转载自blog.csdn.net/u013739073/article/details/76142703