eclipse egit,存储库在共享项目后无法推送,拉取或获取

时间:2014-08-07 16:50:51

标签: java eclipse push egit pull

我通过

在eclipse中分享了我的项目

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

然后我通过做出一些改变进行测试,然后推动,它正在发挥作用。

我的朋友用克隆来获得同一个项目。她做了一些更改,我尝试了fetch / pull,它们都给出了错误:无法获取。我尝试了Push,它给出了错误:拒绝 - 非快进!

我的错误日志视图:

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.

Error Log View

" .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

1 个答案:

答案 0 :(得分:0)

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

命令行可能正常工作。然后,当一切都同步时,你可以回到日食并从那里开始再次工作。在大多数情况下,这次日食完全没问题。