gpt4 book ai didi

git - EGIT 不添加 origin github remote

转载 作者:太空狗 更新时间:2023-10-29 12:56:51 26 4
gpt4 key购买 nike

为什么如果我创建一个本地存储库,然后创建一个 github 存储库,然后将其添加为远程,我提交到本地然后推送到远程,但我无法从远程 pull 到本地?

如果我使用 git bash 添加远程,一切都很好,远程配置正确,我可以 pull 、推送和获取到上游,但如果我通过 EGIT 向导执行它,它永远不适用于先推送然后获取的本地存储库并 merge ...有什么线索吗?

这是日志帖子:

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 for pull

org.eclipse.jgit.api.errors.InvalidConfigurationException: No value for key branch.master.merge found in configuration at 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)

最佳答案

简单添加

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

进入.git/config从 origin/master pull 入 master

关于git - EGIT 不添加 origin github remote,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7448976/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com