gitvisual-studio-2013external-tools

How can I get Posh-Git to launch using 'External Tools' in Visual Studio 2013?


The GitHb client installs Posh-Git as a ClickOnce application with a target of C:\Users\Administrator\AppData\Local\GitHub\GitHub.appref-ms --open-shell. Visual Studio 2013 does not like this when I plug it into the 'External Tools' area. I've tried pulling the arguments out, wrapping in quotes, etc.

The goal is to be in a project and quickly launch Posh-Git in the project directory I'm working in.


Solution

  • 1.) Add external tools and point to a batch file. Add the arguments listed below in the image. This assumes that your Git repository is one folder up from a 'Solution' directory.

    External Tools

    2.) The batch file should have the following contents (Replace 'Administrator' with the appropriate user):

    @echo off
    echo Starting with switches:  %*
    echo.
    echo.
    C:\Users\Administrator\AppData\Local\GitHub\GitHub.appref-ms %*