【问题标题】:eclipse egit, repository unable to push, pull or fetch, after sharing the projecteclipse egit,共享项目后,存储库无法推送,拉取或获取
【发布时间】:2014-08-07 16:50:51
【问题描述】:

我在 Eclipse 中分享了我的项目,作者

右键 -> 团队 -> 分享。在向导中:添加 URL、用户、密码。高级 -> 设置主远程和本地 -> 保存并推送。

然后我通过进行一些更改和推送进行了测试,它正在工作。

我的朋友使用克隆来获得相同的项目。她做了一些更改,我尝试了 fetch/pull,它们都给出了错误:Nothing to fetch。我试过Push,报错:rejected-non fast forward!

我的错误日志视图:

eclipse.buildId=4.3.2.M20140221-1700
java.version=1.8.0_20-ea
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product
org.eclipse.epp.package.jee.product



Error
Thu Aug 07 10:28:51 EDT 2014
Can't connect to any repository:
https://Andisheh86@bitbucket.org/Andisheh86/semanticsearch.git (Nothing to push.)

Warning
Thu Aug 07 10:57:38 EDT 2014
Keybinding conflicts occurred.  They may interfere with normal accelerator operation.

“.git/config”的内容

[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = https://Andisheh86@bitbucket.org/Andisheh86/semanticsearch.git
push = refs/heads/master:refs/heads/master
[branch "master"]
remote = origin
merge = refs/heads/master

【问题讨论】:

  • 听起来好像本地分支没有配置为从远程分支获取/拉取。你有来自该存储库的.git/config 文件吗?
  • 是的,我有这个,根据我在这里找到的其他帖子,其中的数据是正确的。
  • 能否在问题中包含.git/config 的内容?

标签: java eclipse push egit pull


【解决方案1】:

这一直发生在我身上。我认为是因为 egit 和 eclipse 之间的一些不良集成。我要解决这个问题是打开一个终端,转到您的项目目录并从控制台执行 git pull

命令行可能会正常工作。然后,当一切都同步后,你可以回到你的 Eclipse 并从那里重新开始工作。在大多数情况下,在完成这个 eclipse 之后工作得很好。

【讨论】:

  • 谢谢!它快把我逼疯了,所以我再次克隆了它!
  • 发生错误日志视图时是否有内容?我来自 EGit 团队,很高兴能得到一个带有详细信息的 bug report,因为这不应该发生。
猜你喜欢
  • 2014-05-14
  • 1970-01-01
  • 1970-01-01
  • 2020-12-26
  • 1970-01-01
  • 2015-10-17
  • 2014-01-06
  • 2011-02-18
  • 2016-10-24
相关资源
最近更新 更多