当使用Eclipse和Egit时,我不能推向上游 [英] When using Eclipse and Egit I can not push to upstream

查看:92
本文介绍了当使用Eclipse和Egit时,我不能推向上游的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每次我试图推动我拒绝不快进。如果我从终端推出,它的工作原理很好。

Every time I try to push I get reject non-fast forward. If I push from the terminal it works just fine.

我正在使用Ubuntu Natty
最新eclipse
Egit插件
git https

I am using Ubuntu Natty latest eclipse Egit plugin git https

我宁愿使用ssh,但是我也不能让它工作。

I would rather use ssh, but I can not get that to work either.

推荐答案

Windows-> Preferences-> Team-> Git-> Configuration-> Repository Settings-> Add Entry

Windows->Preferences->Team->Git->Configuration->Repository Settings->Add Entry

只需添加两个键:'merge'和'remote'像下面的图片。

Just add two key: 'merge' and 'remote' like the following pic.


  1. key(branch.master.merge) - value(refs / heads / master) li>
  2. key(branch.master.remote) - value(origin)

这篇关于当使用Eclipse和Egit时,我不能推向上游的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆