|
| 1 | +--- |
| 2 | +title: "GitHub Desktop" |
| 3 | +subtitle: "Streamline git process without code" |
| 4 | +author: "alex" |
| 5 | +date: "2025-01-29" |
| 6 | +categories: [tools, qol, gui] |
| 7 | +image: "thumb.png" |
| 8 | +# grid: |
| 9 | +# sidebar-width: 050px |
| 10 | +# body-width: 1200px |
| 11 | +# margin-width: 250px |
| 12 | +# gutter-width: 1.5rem |
| 13 | +toc: TRUE |
| 14 | +toc-title: "Table of contents" |
| 15 | +toc-depth: 5 |
| 16 | +--- |
| 17 | + |
| 18 | +This blog post covers the most common and basic git operations that be done using GitHub Desktop. It can be used with other Git hosting services such, but the focus will be on GitHub in this post. |
| 19 | + |
| 20 | +## What is GitHub Desktop? |
| 21 | + |
| 22 | +[**Github Desktop**](https://desktop.github.com/) is a **free and open-source** software that provides a **graphical user interface** to use git instead of using the prompts. It means you don't need to learn how to use the command lines to have a proper usage of Git. |
| 23 | + |
| 24 | +### Features |
| 25 | + |
| 26 | +It allows you to: |
| 27 | + |
| 28 | +- Clone a repository to your local environment |
| 29 | + |
| 30 | +- Rebase your current branch |
| 31 | + |
| 32 | +- Write commit messages and push branches to your distant repository |
| 33 | + |
| 34 | +- Open a pull request |
| 35 | + |
| 36 | +And a lot more. |
| 37 | + |
| 38 | +::: callout-note |
| 39 | +##### A lot of features |
| 40 | + |
| 41 | +This blog post focuses on the actions described above and do not cover specificities such as code review. |
| 42 | +::: |
| 43 | + |
| 44 | +### Installation and setup |
| 45 | + |
| 46 | +#### Download |
| 47 | + |
| 48 | +GitHub Desktop is available for Windows and Mac and can be download from [this link](https://desktop.github.com/download/). |
| 49 | + |
| 50 | +::: callout-tip |
| 51 | +##### Linux user? |
| 52 | + |
| 53 | +GitHub Desktop is not officially available on Linux. Still, a [fork](https://github.com/shiftkey/desktop) version can be installed. |
| 54 | +::: |
| 55 | + |
| 56 | +#### Associate GitHub Account |
| 57 | + |
| 58 | +By opening the `File > Options...` menu, you will be able to connect your GitHub account directly. |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | +## Clone a repository |
| 63 | + |
| 64 | +A repository hosted on GitHub can be cloned in two clicks. From the repository page, click on *Code* and then *Open with GitHub Desktop*. |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +## Start coding |
| 69 | + |
| 70 | +The top screen menu allows you to: |
| 71 | + |
| 72 | +- Select the repository you want to work on |
| 73 | + |
| 74 | +- Select the branch you want to work on |
| 75 | + |
| 76 | +- Retrieve the latest changes from the remote repository without applying them to your working directory using *Fetch origin* |
| 77 | + |
| 78 | +When your branch is selected you can run the coding software of your choice and that coding. |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | +::: callout-tip |
| 83 | +## Supported editors |
| 84 | + |
| 85 | +The list of supported editors is available [here](https://docs.github.com/en/desktop/configuring-and-customizing-github-desktop/configuring-a-default-editor-in-github-desktop?platform=windows "https://docs.github.com"). |
| 86 | +::: |
| 87 | + |
| 88 | +## Commit changes, push branches and pull request |
| 89 | + |
| 90 | +Once you're ready with an addition or modification of a program, the update history is automatically displayed in GitHub Desktop. |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | +In the bottom left corner of the GitHub Desktop window, you can write a clear can concise **commit message** that will describe your modifications and status. The "Description" field can be used to add more information. |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | +Once the commit is done, you can **push** your branch from your local folder to the remote repository. |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | +Then the remote repository will be updated. |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | +Finally, when you are ready to open a **pull request** directly from GitHub Desktop. |
| 107 | + |
| 108 | + |
| 109 | + |
| 110 | +The GitHub webpage will open in the pull request creation webpage. |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | +The code review can be done directly form GitHub or from GitHub Desktop. |
0 commit comments