I'm on Eclipse 4.2.1 (Java) and trying to use EGIT. My account is all set up on Github. No one else is working on it so there are no changes. I have a very simply project containing a single file with one print statement. I created my local repo and added the project. (project explorer shows: [gitrepo1 master])
In project explorer: right click on project -> team -> remote -> push But I get: master: HEAD [rejected - non-fast-forward]
I've configured the push: Branch -> master URI -> ssh.git@github.... Ref mappings -> HEAD:/refs/heads/master
What am I doing wrong?
We had this problem, because we amended a commit after pushing it.
The solution was to merge origin/master (in Branches > Remote tracking), then push.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With