Mercurial’s Command Server allows to issue commands to a Mercurial repository over a pipe through a special protocol… it is like a “webservice” of sorts.
https://www.mercurial-scm.org/wiki/CommandServer
Is there anything similar in Git in order to manipulate remote Git repositories to do things you need? (like switching to another branch or updating to another revision)
Don’t know exactly, what the mercurial command server does, but usually
gitutilizessshas its primary remote protocol.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 remotegitinstallation provides.