I have setup my remote git and local git on my mac I was able to create a git repo (git init myrepo) on the remote machine (Linux) Added few files and committed them no prob
You are probably pushing to a bare repository. You must clone it someplace and pull from the remote in order to see live changes.
To create a bare repository at myPath; you'll need to be logged into a shell on myIP:
Now your push should work and follow @VonC's instructions above in configuring your post-receive hook.