How to use SourceTree embedded Git/Mercurial on command line

SourceTree comes with its own embedded Git and Mercurial. These are not available outside on regular command lines by default, but seems you can make them so by adding the following two paths to your %PATH% variable.

  • %USERPROFILE%\AppData\Local\Atlassian\SourceTree\git_local\bin
  • %USERPROFILE%\AppData\Local\Atlassian\SourceTree\hg_local
  • Chris Roberts

    Just what I was looking for, thanks!

  • Singleton

    Thanks mate 🙂

  • Zeruel

    thanks man

  • thanks!

  • Bruno Alves

    Thanks.

  • Alex

    ty was searching for it to associate php storm’s git