I have a Java project in Eclipse that I maintain using a local git repository (The repository has only that one project).
I’ve been asked to push this project to a remote git repository. This repository already has other projects in it (and apparently the plan is to maintain all my team’s projects in this repository).
How would I go about doing this using Eclipse and Egit? (Alternatively, I wouldn’t mind doing this on the command line as well).
When I tried the “normal” procedure for pushing a project using Egit (Right-click project -> Team -> Remote -> Push) I get an error “master: master [rejected – non-fast-forward].
do the following and replace the <tags> with your data