Seth Hikari
Seth Hikari

Reputation: 2771

When using Eclipse and Egit I can not push to upstream

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

I am using Ubuntu Natty latest eclipse Egit plugin git https

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

Upvotes: 10

Views: 13863

Answers (2)

bbdlg
bbdlg

Reputation: 21

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

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

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

Upvotes: 2

Yeo
Yeo

Reputation: 11784

I am not sure whether this one can help... because I ever having problem when pushing in eclipse but not in cmd. So I try to modify the Eclipse network connection setting

  • Go to Window -> Preference
  • General -> Network Connection --> SSH2
  • The problem could be inside there.

Or if it doesn't work,..

have you try again to re-setup, and Follow the guide http://wiki.eclipse.org/EGit/User_Guide exactly

Hope it helps, Good luck, :)

Upvotes: 1

Related Questions