Git won't let you push in this case, because the remote repo is ahead of your local repo.
Git will let you pull (as long as you don't have untracked local changes that would be overwritten by the pull).
After you have pulled (and merged conflicts if necessary), then you would be able to push.