Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 341
Seth Hikari Avatar asked Jun 14 '11 23:06

Seth Hikari


2 Answers

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)
like image 102
bbdlg Avatar answered Sep 29 '22 13:09

bbdlg


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, :)

like image 36
Yeo Avatar answered Sep 29 '22 14:09

Yeo