GitHub Desktop is a graphical client for working with Git. Instead of terminal commands, you work through a convenient interface with buttons and menus.
Why Use GitHub Desktop?
Advantages:
β
No need to memorize Git commands
β
Visual interface for commits and branches
β
Built-in conflict editor
β
Works on Windows and Mac
β
Free and open source
When to use it:
- You’re new to Git
- You prefer a GUI over the terminal
- You work with GitHub repositories
- You need a fast workflow for simple tasks
Step 1: Download
Windows and macOS
- Open in your browser: https://desktop.github.com
- Click Download for Windows or Download for macOS
- Wait for the download (usually 100-150 MB)
Linux
GitHub Desktop doesn’t officially support Linux, but there’s a community version!
Install via Snap:
sudo snap install github-desktop --classic
Or download from GitHub:
https://github.com/shiftkey/desktop
Step 2: Install
Windows
- Open the downloaded
GitHubDesktopSetup.exe - The program will install automatically
- GitHub Desktop will launch
macOS
- Open the downloaded
GitHubDesktop.zip - Drag
GitHub Desktop.appinto the Applications folder - Launch from Launchpad or Spotlight
Linux (Snap)
After the snap install command the app is ready:
# Launch
github-desktop
Step 3: First Launch and Authorization
On first launch GitHub Desktop will ask you to:
3.1 Sign in to GitHub
- Click Sign in to GitHub.com
- A browser will open
- Allow GitHub Desktop access to your account
- Return to the app
No account? Create one at github.com/signup
3.2 Configure Git
GitHub Desktop will ask you to set your name and email for commits:
Name: John Smith
Email: john@example.com
Important:
- Name can be anything
- Email should match the one on GitHub
Step 4: Exploring the Interface
Main window
βββββββββββββββββββββββββββββββββββββββ
β Current Repository βΌ Branch βΌ β β Top panel
βββββββββββββββββββββββββββββββββββββββ€
β Changes (3) β History β β Tabs
ββββββββββββββββΌβββββββββββββββββββββββ€
β β file1.py β Apr 10 - Add tests β
β β file2.js β Apr 9 - Fix bug β
β β README.md β Apr 8 - Init β
β β β
β Commit to main β β Commit button
βββββββββββββββββββββββββββββββββββββββ
Main elements
1. Current Repository
- Shows the active repository
- Click to open the list of all repositories
2. Current Branch
- Shows the current branch
- Click to switch to another branch
3. Changes
- List of modified files
- Select what to commit here
4. History
- List of all commits
- See what was changed
5. Summary and Description
- Fields for the commit message
- Summary β short description
- Description β details (optional)
Step 5: Creating Your First Repository
Option 1: New repository
- File β New Repository
- Fill in the fields:
- Name: my-first-repo
- Description: My first repository
- Local Path: where to save
- β Initialize with README - Click Create Repository
Option 2: Clone an existing one
- File β Clone Repository
- Choose a repository from the list (your repos on GitHub)
- Or paste a URL
- Choose a folder
- Click Clone
Option 3: Add a local project
- File β Add Local Repository
- Select the project folder
- If it’s not a Git repository, it will offer to initialize one
Step 6: First Commit
Let’s try making a change:
- Open the repository folder in your file explorer
- Create a file
test.txtwith the text “Hello GitHub Desktop” - Return to GitHub Desktop
You’ll see:
- test.txt appears in the Changes panel on the left
- A checkbox next to the file (it will be included in the commit)
- On the right β the contents of the change
Make the commit:
- In the Summary field type:
Add test.txt - (Optional) In Description:
My first commit - Click Commit to main
π Congratulations! You made your first commit!
Step 7: Publish to GitHub
To make your repository appear on GitHub:
- Click Publish repository (top right)
- Check the settings:
- Name: leave as is
- Description: optional
- Keep this code private: uncheck for a public repository - Click Publish Repository
In a few seconds your code will be on GitHub!
Useful Keyboard Shortcuts
Windows:
- Ctrl+1 β show Changes
- Ctrl+2 β show History
- Ctrl+Enter β make a commit
- Ctrl+P β Push to origin
- Ctrl+Shift+P β Pull from origin
macOS:
- Cmd+1 β show Changes
- Cmd+2 β show History
- Cmd+Enter β make a commit
- Cmd+P β Push to origin
- Cmd+Shift+P β Pull from origin
Frequently Asked Questions
β Do I need to install Git separately?
No! GitHub Desktop includes Git inside.
β Can I use it with GitLab/Bitbucket?
Yes! GitHub Desktop works with any Git repositories, not just GitHub.
β How do I update GitHub Desktop?
The app updates automatically. If it doesn’t:
- Help β Check for Updates
β Where are repositories stored?
By default:
- Windows: C:\Users\NAME\Documents\GitHub\
- macOS: /Users/NAME/Documents/GitHub/
- Linux: ~/Documents/GitHub/
What’s Next?
Now you’re ready to:
- β Make commits
- β Create branches
- β Publish code to GitHub
- β Clone repositories
Check out our Git & GitHub Desktop course for hands-on practice! π
π¬ Comments (0)
No comments yet
Be the first to share your opinion about this article!