Coding

What Is GitHub Desktop? What It Does and How to Use It

GitHub Desktop is a free, open source app that lets you do Git work, such as cloning, committing and pushing, by clicking buttons instead of typing commands. It connects to GitHub (or GitHub Enterprise) and is meant for people who want a visual view of their changes.

This article covers what the app does, how to sign in, and the basic loop of clone, branch, commit and push. Button names below come from the GitHub Docs pages listed under Sources. The app's interface changes over time, so a label may differ slightly in your version.

What is GitHub Desktop?

GitHub's documentation describes GitHub Desktop as an open source application for working with code hosted on GitHub or other Git hosting services. It runs Git actions through a graphical interface. The source code is public in the desktop/desktop repository, where the README says it is built with Electron, TypeScript and React and released under the MIT license. The MIT grant does not cover GitHub's trademarks or logos.

It is not the same thing as GitHub itself. GitHub is the website that hosts repositories and pull requests. Git is the version control tool that tracks your changes on your own computer. GitHub Desktop is a program on your computer that drives Git for you and talks to GitHub. If those three terms are blurry, How Does GitHub Work? explains how they fit together.

What can GitHub Desktop do?

According to the getting-started page, the basic workflow is:

  1. Add a repository, using New repository..., Add Local Repository... or Clone Repository... from the File menu.
  2. Create a branch, so your changes stay separate from other branches.
  3. Review your changes and commit them.
  4. Push your commits to GitHub to share them.
  5. Collaborate by creating issues or pull requests, and by viewing pull requests from you or your collaborators.
  6. Sync your branch to pull in remote changes and push your local ones.

Everything in that list is also possible from the command line. The app's value is the visual part: it lists the files you changed and shows what changed in each one before you commit.

Is GitHub Desktop free, and which systems does it run on?

It is free. You do need a GitHub account to sign in to GitHub.com.

SystemStatus (per the project README)
WindowsOfficial installers, including a machine-wide MSI. The beta channel also offers a Windows ARM64 build.
macOSOfficial installers for Intel and Apple silicon.
Linux"Linux is not officially supported." Community installers come from the shiftkey/desktop fork.

The README does not list minimum Windows or macOS versions. GitHub's docs point to a separate supported operating systems article for that, so check it before installing on an old machine. Download the app from desktop.github.com.

How to sign in to GitHub Desktop

Install the app, open it, and sign in. If you skipped sign-in on the welcome screen, you can do it later from the settings:

  • Windows: open the File menu, click Options, then go to the Accounts pane.
  • macOS: in the menu bar, open the GitHub Desktop menu, click Settings, then go to the Accounts pane.

Click Sign Into GitHub.com (or Sign Into GitHub Enterprise) and follow the on-screen steps. If you are already signed in, the buttons read Add GitHub.com account and Add GitHub Enterprise account instead.

How to use GitHub Desktop: clone, branch, commit, push

Clone or create a repository

Open the File menu and choose Clone Repository... to copy an existing repository to your computer. Choose New repository... to start a fresh one, or Add Local Repository... if the folder already contains a Git repository. A new repository that exists only on your machine has to be published before it appears on GitHub: click Publish repository in the repository bar, adjust the name and description if needed, and tick Keep this code private if you do not want it public. Then click Publish Repository.

Create a branch

Click Current branch in the repository bar. From that menu you can view and switch branches, or create a new one. Working on a branch keeps experimental changes away from your main line of work.

Review changes and commit

  1. Edit files in any editor. They show up in the Changes view.
  2. Tick the checkbox next to each file you want in the commit.
  3. Type a short summary in the commit message field next to your profile picture. A longer explanation can go in the Description field.
  4. Click Commit to BRANCH NAME. The button shows the name of your current branch.

The commit is saved on your computer only. Nothing has reached GitHub yet.

Push, fetch and pull

To send commits to GitHub, click Push origin in the repository bar. After a rebase, the button reads Force push origin instead, because the branch history was rewritten. To check for new commits on the remote without changing your local branch, click Fetch origin. To bring those commits in, click Pull origin (or Pull origin with rebase). If a pull produces merge conflicts, the docs say to resolve them with a text editor, the command line or another tool.

The same push step in the terminal is covered in How to Push to GitHub.

Open a pull request

Once your branch is pushed, you can open a pull request from the app. The getting-started page lists creating issues and pull requests as part of the workflow, and pull requests you have created can be viewed by clicking Current branch. The exact steps for opening one were not on the pages checked for this article, so follow the in-app prompts after a push, or open the pull request on github.com.

GitHub Desktop or the command line?

Pick by how you like to work. The app suits you if you want to see changed files and line-by-line differences before every commit, or if the commit, push and pull terms are new to you. The command line suits you if you already know the commands, work over SSH on a server, or use Linux, where the app has no official build. They are not exclusive: both operate on the same repository, so you can commit in the app and push from the terminal, or the reverse. For a first walkthrough that uses both the website and commands, see How to Use GitHub: A Beginner's Guide.

If it does not work

If a push fails with an authentication error, check that you are signed in under the Accounts pane described above, and that the account has write access to the repository. If you prefer SSH to signing in through the app, see How to Add an SSH Key to GitHub. If the app cannot be installed on Linux, that matches the README: Linux is not officially supported, so your options are the community fork or the command line.

Frequently asked questions

Is GitHub Desktop free?
Yes. GitHub Desktop is a free, open source app released under the MIT license. You still need a GitHub account to sign in to GitHub.com, but the app itself costs nothing.
Does GitHub Desktop work on Linux?
Not officially. The project's README states that Linux is not officially supported. Community-made Linux installers exist, built from a fork called shiftkey/desktop, but GitHub does not maintain them. Official installers cover Windows and macOS (Intel and Apple silicon).
Can I use GitHub Desktop with repositories that are not on GitHub?
The GitHub documentation describes it as an app for working with code hosted on GitHub or other Git hosting services, so a repository on another host can be cloned or added as a local repository. Features such as creating pull requests are tied to GitHub.
Do I need to know Git commands to use GitHub Desktop?
No. The app performs Git actions such as commit, push and pull through its interface. Knowing the terms (repository, branch, commit, remote) still helps, because the buttons are named after them.

Sources