Skip to content

Commit 41d6cdf

Browse files
Merge pull request #37 from phuse-org/32-github-desktop-startup-post
32 GitHub desktop startup post
2 parents 82538fb + d089240 commit 41d6cdf

13 files changed

+116
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5-
docs
5+
docs
6+
*.Rproj

git-in-statistical-programming.Rproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
Version: 1.0
2-
ProjectId: f88a3db9-ec2d-4fb9-81d1-af2d80e1823a
32

43
RestoreWorkspace: Default
54
SaveWorkspace: Default
26.4 KB
Loading
27.7 KB
Loading
10.7 KB
Loading
Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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+
![](account.png)
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+
![](clone.png)
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+
![](open-software.png)
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+
![](update-history.png)
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+
![](commit.png)
97+
98+
Once the commit is done, you can **push** your branch from your local folder to the remote repository.
99+
100+
![](push.png)
101+
102+
Then the remote repository will be updated.
103+
104+
![](push-remote.png)
105+
106+
Finally, when you are ready to open a **pull request** directly from GitHub Desktop.
107+
108+
![](pull-request.png)
109+
110+
The GitHub webpage will open in the pull request creation webpage.
111+
112+
![](pull-request-remote.png)
113+
114+
The code review can be done directly form GitHub or from GitHub Desktop.
22 KB
Loading
43.2 KB
Loading
23.9 KB
Loading
24.9 KB
Loading

0 commit comments

Comments
 (0)