EGIT does not add github remote source

Why, if I create a local repository, then I create a github repository, and then add it as a remote one, I take on the local one and then I click on the remote one, but I have no way to pull it from the remote to the local one?

If I add remote use with git bash, the entire remote device is configured correctly and I can pull out and then click and select for upstream, but if I do this through the EGIT wizard, it will never work for local repositories that will pressed and then get and combine ... Any clues?

Here is the log message:

eclipse.buildId = I20110613-1736 java.version = 1.6.0_26 java.vendor = Sun Microsystems Inc. BootLoader constants: OS = win32, ARCH = x86, WS = win32, Framework arguments: -product org.eclipse.epp.package.java.product Command line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse. epp.package.java.product

Error Tue Sep 20 10:40:05 BST 2011 The current branch is not configured to pull

org.eclipse.jgit.api.errors.InvalidConfigurationException: there is no value for the key branch.master.merge found in the configuration on org.eclipse.jgit.api.PullCommand.call (PullCommand.java:189) in org.eclipse.egit .core.op.PullOperation $ 1.run (PullOperation.java:82) at org.eclipse.core.internal.resources.Workspace.run (Workspace.java:2344) at org.eclipse.core.internal.resources.Workspace. run (Workspace.java:2326) in org.eclipse.egit.core.op.PullOperation.execute (PullOperation.java:104) in org.eclipse.egit.ui.internal.pull.PullOperationUI.execute (PullOperationUI.java: 115) at org.eclipse.egit.ui.internal.pull.PullOperationUI $ 1.run (PullOperationUI.java:90) at org.eclipse.core.internal.jobs.Worker.run (Worker.java:54)

+7
source share
4 answers

just add

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

in .git / config pull from original / master to master

+9
source

You can do this on the Git Repositories tab.

Window> View View> Other ...> Git> Git Repositories

Expand Project Repository> Right-click on Start> Create Remote ...

+6
source

It discusses this, proposing a proposed solution, and pointing to the bugzilla bug report at http://www.eclipse.org/forums/index.php/m/683377/ .

In short, the problem is that the Egit system does not know which branch on the remote computer corresponds to the main branch in eclipse, and the solution adds this information to the configuration file.

+1
source

Changing the configuration file in my case did not help.

So, I deleted the local project after the initial click and did a pull later. Now everything is fine.

0
source

All Articles