Launching GitHub Desktop from the command line

You can launch GitHub Desktop from the command line.

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

    Install Command Line Tool option in the GitHub Desktop drop-down menu

  2. Open Terminal.

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

    $ github /path/to/repo

    You can also change to your repository path and then type github . to open that repository.

    $ 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, type github followed by the path to the repository.

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

    You can also change to your repository path and then type github . to open that repository.

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

Did this doc help you?

Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Or, learn how to contribute.