I'm looking for a command-line tool that works with a variety of version control systems (Git, SVN, Mercurial, …) and clones a remote or local repository to specified folder, e.g.,

cloner \
    --source [email protected]:vtk/vtk.git \
    --out $HOME/vtk

Ideally, the tool does some caching (in /tmp/ or /var/cache) such that repeated clones happen faster.

  • 1
    So what you want is a tool that works with any version management system with the ability to clone to a folder that you specify.. Am I correct?
    – Aswin P J
    Commented May 12, 2016 at 13:51

1 Answer 1


You can use mercurial, (hg), and tortoisehg which I recommend installing as it pre-populates some of the extensions for you, with some plug in components as a full client for:

You can also use the convert extension to create a hg clone of the repository from:

  • CVS
  • Subversion
  • Git
  • Darcs
  • Monotone
  • Bazaar
  • GNU Arch
  • Mercurial
  • Perforce

This can be done incrementally and once you have converted to hg you can switch to any given revision up to the point that you last updated without even web access.

Disclaimer: I have contributed to the hgsubversion plug in but gain no financial benefit from it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.