SVN

How to know the current version of repository on a SVN server.

$ svn info -r HEAD

In case of Git this will be.

$ git ls-remote --heads origin