Prerequisites
Before you begin, make sure you have:- Installed GitHub Desktop on your computer
- A GitHub account (sign up at github.com)
Step 1: Sign In to GitHub
Launch GitHub Desktop
Open GitHub Desktop from your Applications folder (macOS) or Start menu (Windows).
Sign in with your GitHub account
- Click Sign in to GitHub.com
- You’ll be redirected to GitHub in your browser
- Click Authorize desktop to grant access
- Return to GitHub Desktop
For GitHub Enterprise, click Sign in to GitHub Enterprise Server and enter your server URL.
Step 2: Clone a Repository
Choose a repository to clone
On the welcome screen, click Clone a Repository from the Internet.Alternatively, go to File → Clone Repository (or
⌘⇧O on macOS, Ctrl+Shift+O on Windows).Select your repository
You’ll see a list of repositories from your GitHub account:
- Browse the GitHub.com tab for your personal repositories
- Search for a specific repository
- Or enter a URL in the URL tab
Step 3: Make Changes
Open the repository in your editor
Click Repository → Open in [Your Editor] or press
⌘⇧A (macOS) / Ctrl+Shift+A (Windows).This will open the repository in your configured external editor (VS Code, Atom, etc.).Edit a file
Make a change to any file in the repository. For example:
- Open
README.md - Add a new line of text
- Save the file
View changes in GitHub Desktop
Switch back to GitHub Desktop. You’ll see:
- The Changes tab showing modified files
- A diff view showing what changed (green for additions, red for deletions)
- Checkboxes to select which changes to include
GitHub Desktop automatically detects all changes in your repository.
Step 4: Make Your First Commit
Stage your changes
By default, all changes are selected (staged). You can:
- Uncheck files to exclude them from the commit
- Check/uncheck individual lines by clicking in the diff view
Write a commit message
In the bottom-left corner:
- Enter a summary (e.g., “Update README with project description”)
- Optionally add a description for more context
Step 5: Push to GitHub
Push your commits
After committing, you’ll see a notification: Push origin.Click the Push origin button in the top-right corner to upload your commits to GitHub.
The button shows the number of commits ready to push (e.g., “Push origin ↑1”).
What You’ve Learned
Congratulations! You’ve successfully:Signed In
Connected GitHub Desktop to your GitHub account
Cloned
Downloaded a repository to your computer
Committed
Saved changes with a descriptive commit message
Pushed
Uploaded your commits to GitHub
Next Steps
Now that you know the basics, explore more features:Branches
Learn how to create and switch between branches
Pull Requests
Create pull requests directly from GitHub Desktop
Merge Conflicts
Resolve conflicts when collaborating with others
History & Diffs
View commit history and compare changes
Common Next Actions
How do I create a new repository?
How do I create a new repository?
- Go to File → New Repository (or
⌘N/Ctrl+N) - Enter the repository name and description
- Choose a local path
- Click Create Repository
- Optionally publish it to GitHub with Publish Repository
How do I switch branches?
How do I switch branches?
- Click the Current Branch dropdown at the top
- Select an existing branch or click New Branch
- GitHub Desktop will switch to that branch
How do I pull changes from GitHub?
How do I pull changes from GitHub?
Click the Fetch origin button regularly to check for new commits. If there are changes, click Pull origin to download them.
How do I undo a commit?
How do I undo a commit?
- Go to the History tab
- Right-click on the commit you want to undo
- Select Revert Changes in Commit
Need more help? Check out our Troubleshooting Guide or FAQ.