The current branch is not configured for pull No value for key branch.master.merge found in configuration

后端 未结 17 1068
太阳男子
太阳男子 2020-11-30 16:44

I get this error when I try to pull from remote repository using Egit team>pull

The current branch is not configured for pull No value for key branc

17条回答
  •  日久生厌
    2020-11-30 17:10

    Your local master branch is not set up to track remote master branch.

    You could do git pull origin master to tell git the explicit branch you want to pull or you add this to your .git/config:

    [branch "master"]
      remote = origin
      merge = refs/heads/master
    

    When you push to master for the first time, add the -u switch (git push -u origin master). This will set everything up automatically.

提交回复
热议问题