A remote url like http://mysite/.git
is certainly not a valid one.
It should refer to a bare repo name like, from the tutorial you reference, 'myproject/.git':
git remote set-url origin dan@server:/var/git/myproject.git
(Replace dan
by the user account you used to setup a git repo in /var/www/myproject
).
The OP wdphd confirms it works, but the non-bare repo isn't updated.
That is because the hook is pushing to "hub
", and that remote need to be declared:
cd /var/www/myproject/.git
git remote add hub /var/git/myproject.git
(easier than editing /var/www/myproject/.git/config
directly)