Read Anthropic’s case study about Graphite Reviewer

GitHub Desktop

Kenny DuMez
Kenny DuMez
Graphite software engineer

GitHub Desktop is a seamless way to contribute to projects on GitHub and GitHub Enterprise. This graphical user interface (GUI) makes it easy for developers to use GitHub without the command line. In this guide, we'll cover everything from downloading GitHub Desktop to using it effectively across different operating systems.

To start using GitHub Desktop, you need to download the application. GitHub Desktop supports Windows and macOS. There is also a community-supported version for Linux users as well, although this is not officially maintained by GitHub.

  • Windows and macOS: Visit the official GitHub Desktop website and choose the version for your operating system. The site automatically detects your OS and suggests the right version for download.
  • Linux: For Linux users, you can find packages suitable for different distributions like Ubuntu, Fedora, or Arch Linux through community-maintained repositories. One of the most popular projects can be found here.

Once GitHub Desktop is installed, the first step is to log in with your GitHub or GitHub Enterprise account. This will sync your repositories and settings with GitHub Desktop.

To work on existing projects:

  1. Click on File > Clone repository.
  2. You can choose to clone a repository from your list of existing repositories on GitHub or enter a URL of a repository directly.
  3. Select the local path where you want the repository to be saved on your computer.
  1. Click on File > New repository.
  2. Provide the necessary information like repository name, local path, and initialization options (like adding a README, .gitignore, or a license).
  3. Click Create Repository to create it locally and on GitHub.

With GitHub Desktop, you can also make changes to your files and commit them:

  1. Open the repository in GitHub Desktop.
  2. Changes you make in the repository files are automatically shown in the app under the Changes tab.
  3. You can select individual files to see diffs and decide what to commit.
  4. Write a commit message describing your changes and click Commit to main to commit the changes to the local repository.

After committing your changes locally, you need to push them to GitHub to make them available to others:

  1. Click the Push origin button to send your committed changes to GitHub.

To ensure you have the latest version of the repository:

  1. Click on Repository in the menu.
  2. Select Pull to fetch and merge any changes from the remote repository into your local repository.

Branching is vital for managing different versions of a project:

  1. To create a new branch, click on the Current Branch tab at the top.
  2. Click on New Branch, name it, and create it.
  3. When you want to switch between branches, use the Current Branch tab to select different branches.

For further reading on GitHub Desktop, see the official GitHub Desktop documentation.

Graphite
Git stacked on GitHub

Stacked pull requests are easier to read, easier to write, and easier to manage.
Teams that stack ship better software, faster.

Or install our CLI.
Product Screenshot 1
Product Screenshot 2