Git workflow
Once a repository has been cloned and GitHub access is configured, most updates require only a small set of Git commands. Run them from the repository root.
Before editing: get current changes
Update your local copy before starting work:
git pullIf this command reports a conflict or asks for authentication, stop and resolve that issue before editing. See Setting up Git for additional guidance.
After editing: see what changed
Check which files have been changed:
git statusOptionally inspect the actual text changes:
git diffYou normally want to commit edited .qmd source documents and any deliberate figures, datasets, or configuration changes. Avoid committing locally generated website output unless the repository explicitly requires it.
Send your update to GitHub
Add only the files belonging to your update:
git add path/to/lesson.qmdRecord the update with a short message:
git commit -m "Clarify exercise instructions"Push the commit to the remote repository:
git pushCheck the published result
In repositories published through GitHub Actions, pushing usually triggers a new render and deployment. After pushing:
- Check the repository’s Actions tab on GitHub.
- Confirm that the build completed successfully.
- Open the published site or output and check the updated page.
Command summary
git pull
# edit and preview the course material
git status
git diff
git add path/to/lesson.qmd
git commit -m "Describe the change"
git push