Solution Reference: Challenge 10 -- Go Local
This shows the local Git workflow from clone through push.
Terminal/CLI approach
# Clone the repository
git clone https://github.com/<workshop-org>/learning-room-<your-username>.git
cd learning-room
# Create a branch
git checkout -b fix/local-edit
# Make an edit (any text editor works)
# For example, fix a typo or add content to docs/welcome.md
# Stage the change
git add docs/welcome.md
# Commit with a descriptive message
git commit -m "docs: fix typo in welcome page"
# Push the branch to GitHub
git push -u origin fix/local-edit
VS Code approach
- Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
- Run "Git: Clone" and paste the repository URL
- Open the cloned folder
- Click the branch name in the bottom-left status bar, create a new branch
- Edit a file
- Open the Source Control sidebar (Ctrl+Shift+G)
- Stage changes with the + icon, type a commit message, click the checkmark
- Click "Publish Branch" or use the sync button
GitHub Desktop approach
- File, Clone Repository, paste the URL
- Current Branch dropdown, New Branch
- Open the file in your editor and make a change
- Return to GitHub Desktop -- it shows the diff
- Write a commit message at the bottom-left, click "Commit"
- Click "Publish branch" to push
Verifying success
After pushing, go to github.com and you should see:
- A banner saying "fix/local-edit had recent pushes" with a "Compare & pull request" button
- Your branch in the branch dropdown
- Your commit in the branch's commit history
What matters
The learning objective is executing the full local workflow: clone, branch, edit, commit, push. The specific change you made does not matter. If your branch appeared on GitHub with your commit, you succeeded.
Authoritative Sources
Use these official references when you need the current source of truth for facts in this chapter.
Section-Level Source Map
Use this map to verify facts for each major section in this file.
- Terminal/CLI approach: GitHub Docs, home, GitHub Changelog, GitHub Copilot docs, Custom instructions support matrix, About custom agents
- VS Code approach: GitHub Docs, home, GitHub Changelog
- GitHub Desktop approach: GitHub Docs, home, GitHub Changelog, About Git, GitHub flow, About pull requests
- Verifying success: GitHub Docs, home, GitHub Changelog
- What matters: GitHub Docs, home, GitHub Changelog