如果我创建了一个本地仓库,然后创建了一个GitHub仓库,并将其作为远程仓库添加,我会提交到本地,然后推送到远程仓库,但是我无法从远程仓库拉取到本地。如果我使用git bash添加远程仓库,一切都正常,远程仓库已正确配置,我可以从上游拉取、推送和获取,但如果我通过EGIT向本地仓库添加远程仓库,则对于被推送的本地仓库,它从未起作用,也从未获取和合并... 有线索吗?
以下是日志帖子:
错误 Tue Sep 20 10:40:05 BST 2011 当前分支未配置为pull
org.eclipse.jgit.api.errors.InvalidConfigurationException:在配置中未找到关键字branch.master.merge的值 org.eclipse.jgit.api.PullCommand.call(PullCommand.java:189)at 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) at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:104) at 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)
以下是日志帖子:
错误 Tue Sep 20 10:40:05 BST 2011 当前分支未配置为pull
org.eclipse.jgit.api.errors.InvalidConfigurationException:在配置中未找到关键字branch.master.merge的值 org.eclipse.jgit.api.PullCommand.call(PullCommand.java:189)at 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) at org.eclipse.egit.core.op.PullOperation.execute(PullOperation.java:104) at 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)
git remote -v
返回什么?当您尝试“从远程拉取到本地”时,会收到什么错误消息? - basicxman