【发布时间】: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