Session 1 — Exercises: First Workflow with GitHub Desktop
Last updated on 2026-03-05 | Edit this page
Overview
In this session you will clone your repository, make local edits, commit, push, pull, and explore the commit history using GitHub Desktop.
Time frame: approximately 70 minutes of hands-on work.
Task 1: Clone and First Local Commit
Level 1 — Clone your repository
- Open GitHub Desktop.
- Click File → Clone repository (or the Clone a repository button on the start screen).
- Find your
git-intro-<yourname>repository in the list and click Clone. - Choose a local path (e.g. your Desktop or Documents folder).
Checkpoint 1
GitHub Desktop shows your repository with “No local changes”. The repository files are now on your computer in the folder you selected.
Level 2 — Make a local edit and commit
Open your
README.mdin a text editor (you can right-click the repository in GitHub Desktop and choose Open in Visual Studio Code or your preferred editor).-
Add a new section:
Save the file.
Switch back to GitHub Desktop — you should see the changes highlighted.
Write a commit message:
Add workshop goals to READMEClick Commit to main.
Checkpoint 2
The commit appears in the History tab. Your change summary shows the added lines in green.
Note, so far, your changes are still only known within your local repository. They have not been shared with GitHub or anyone else until you push them (Task 2).
Task 2: Push and Pull
Level 1 — Push your commits
- In GitHub Desktop, click the Push origin button in the toolbar.
- Go to your repository on github.com and verify that your new commits are visible.
Checkpoint 3
Your GitHub repository page shows the updated README with the goals section.
Level 2 — Edit on GitHub and pull
On GitHub, click the pencil icon on
README.md.-
Add a “Fun fact” section:
Commit the change directly on GitHub with the message
Add fun fact.Switch back to GitHub Desktop and click Fetch origin, then Pull origin.
Open
README.mdlocally — the fun fact should now be there.
Checkpoint 4
Your local README.md contains both the workshop goals
(added locally) and the fun fact (added on GitHub). Both edits are
visible in the History tab.
Level 3 — Inspect the history in detail
- In GitHub Desktop, go to the History tab.
- Click on different commits and examine the diff (green = added, red = removed).
- On GitHub, go to the Commits page and click on a commit to see the same diff in the web UI.
- Can you find the commit SHA (the short code like
a1b2c3d) for each of your commits?
Task 3: Best Practices Review
Summary
By the end of this session you should have: