I'd recommend you go through the EGit training git exercises  to get familiar with EGit.
In order to bring your local change back to the central git repo you need to push your
change to the remote repository's remote (usually that's origin). If that fails with a non fast
forward error you first need to fetch new commits which reached the upstream branch earlier
than yours and then either merge or rebase your change, then try to push that again.