Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Git Pull: EGit with GitHub

I followed the tutorial http://wiki.eclipse.org/EGit/User_Guide#GitHub_Tutorial to setup EGit with GitHub. When I want to pull I had the same problem described here: The current branch is not configured for pull No value for key branch.master.merge found in configuration

When I add the following to .git/config

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

I get another error:

The current branch is not configured for pull No value for key remote.origin.url found in configuration

How can I fix this?

like image 361
hansi Avatar asked Mar 14 '26 17:03

hansi


1 Answers

As mention in bug 352687, this is probably because the remote section of your git config file doesn't include an 'origin' remote.

See the "Adding a Remote Configuration " section of the Egit User Guide:
If you don't have a remote "origin", you can add one.

add remote

(this example defines a new remote "pushtofile", but, again, you can define one named "origin" if you didn't have one yet.)

like image 130
VonC Avatar answered Mar 16 '26 14:03

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!