Don't know exactly, what the mercurial command server does, but usually git
utilizes ssh
as its primary remote protocol.
ssh serverName "cd /path/to/repo; git pull"
ssh serverName "git --git-dir=/path/to/repo pull"
Sends a shell command to a remote ssh server serverName
. As long as the user you log in with has the rights to do it, you can everything, what the remote git
installation provides.