Langkiller
Langkiller

Reputation: 3457

pull from non local git repository using Egit

I am trying to do a "pull" from my git repository on bitbucket, using Egit (Eclipse). I can do "push" without any problems, but when I try to pull I get the error message:

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

I have tried creating new branches from both eclipse and bitbucket, but the can't seem to "communicate". When I create a new branch in eclipse, it's automatically a local ( which it shouldn't be)

How can I set up my eclipse and bitbucket for "pulls" (not local)? (I am a bit confused as I thought I was connected to the repository, since push works)

Any help will be greatly appreciated

Upvotes: 1

Views: 691

Answers (1)

VonC
VonC

Reputation: 1323553

You need to specify an upstream branch.
The push works because of the default push policy "simple".

With Egit:

Access "Configure Branch":

  • Go to "Git Repositories" view,
  • Expand the branches, local

Then:

  • Right-click your checked-out local branch that can't pull
  • Select "Configure Branch...":
    • For "Upstream Branch:", put "refs/heads/yourBranch"
    • For "Remote:", put "origin"
    • Leave "Rebase" unchecked
    • Hit OK

Upvotes: 2

Related Questions