👋 We've unified all of GitHub's product documentation in one place! Check out the content for REST API, GraphQL API, and Developers. Learn more on the GitHub blog.

Launching GitHub Desktop from the command line

You can launch GitHub Desktop from the command line.

Were you able to find what you were looking for?

  1. In the GitHub Desktop menu, click Install Command Line Tool.

  2. Open a terminal.

  3. To launch GitHub Desktop to the last opened repository, type github. To launch GitHub Desktop for a particular repository, use the github command followed by the path to the repository.

    $ github /path/to/repo

    You can also change to your repository path and type github followed by a period.

    $ cd /path/to/repo
    [repo]$ github .
  1. Open a command prompt.

  2. To launch GitHub Desktop to the last opened repository, type github. To launch GitHub Desktop for a particular repository, use the github command followed by the path to the repository.

    C:\Users\octocat> github path\to\repo

    You can also change to your repository path and type github followed by a period.

    C:\Users\octocat> cd repo\myrepo
     C:\Users\octocat\repo\myrepo> github .

Were you able to find what you were looking for?

Ask a human

Can't find what you're looking for?

Contact us