Learn GitHub
$ gh ghprofessional.ghprojects

Practical Projects

6 learning objectives · 7 key terms · 5 commands · 2 diagrams · 5 quiz questions

$objectives

Practical Projects

Professional Practice

Module 5 of 5 · lesson 21 in this module

What you'll be able to do

  • Apply the module 1-14 material to six progressively harder projects
  • Build a public profile that reflects real work
  • Practise the branch → pull request → review → merge loop on your own repository
  • Run a collaborative project using issues, boards and reviews
  • Add a CI pipeline and make it a required check
  • Ship a production-ready repository with protection, security scanning and a versioned release
$concept

The idea, in plain language

These six projects exist to turn knowledge into habit. Each one deliberately reuses commands from earlier modules, and each adds exactly one new layer: a profile README for presentation, a small web project for the core loop, a team simulation for collaboration, a pipeline for automation, a real open-source contribution for working with other people's standards, and finally a production-ready repository that combines every convention from Module 14.

Do them in order. The value is cumulative: by project 4 you will be writing workflow files without needing to look up the syntax, by project 5 you will be rebasing onto somebody else's main branch without hesitating, and by project 6 the repository conventions will be something you add on day one rather than retrofit later. Keep each project in its own repository so nothing is tangled together and your profile stays readable.

Treat every project as a real piece of work rather than an exercise: write commit messages you would defend, open a pull request with a description a stranger could review, and let CI check your work. The habits you build here are the ones that transfer directly to a paid job.

$key terms

Key terms

Profile README
A repository named exactly like your username whose README renders on your GitHub profile page.
Capstone
A final project that integrates everything from the course.
Smoke test
A quick post-deploy check that the app still responds.
Required status check
A CI job that branch protection insists on before merging.
CODEOWNERS
Path-to-owner mapping that requests the right reviewers automatically.
Versioned release
An annotated tag plus a release page describing what shipped.
Merge conflict drill
Causing and resolving a conflict on purpose to build confidence.
$steps

How it works, step by step

  1. 1
    Set up one repository per project

    Small, focused repositories are easier to present and easier to reason about. Give each one a description, a README and a license.

    start cleanbash
    gh repo create profile-readme --public --description "My GitHub profile README" --clone
  2. 2
    Follow the workflow every time

    Branch, commit in small steps, push, open a pull request, let checks run, review your own diff, merge, delete the branch. Repetition is the point.

    the loopbash
    git switch -c feature/hello-world
    git commit -m "feat: add hello world page"
    git push -u origin feature/hello-world
    gh pr create --fill --base main
  3. 3
    Write the README as if a stranger will read it

    What the project is, how to run it, what you learned, and a screenshot or a command worth copying. This is also the practice that makes project 6 easy.

  4. 4
    Simulate a teammate when the project calls for it

    Project 3 needs two people. If you are working alone, create a second branch, change the same lines, and resolve the conflict deliberately — the exercise works either way.

    conflict drillbash
    git switch -c feature/a && printf 'line = "A"\n' > shared.txt && git commit -am "feat: A"
    git switch main && printf 'line = "B"\n' > shared.txt && git commit -am "feat: B"
    git merge feature/a   # conflict, on purpose
  5. 5
    Add automation at project 4 and keep it

    Once CI exists, every later project should have it. Reuse the workflow file from project 4 as a starting point rather than writing a new one.

    reusebash
    mkdir -p .github/workflows && cp ../project-4/.github/workflows/ci.yml .github/workflows/
  6. 6
    Finish with a release, not a folder of commits

    Tag the finished state, write or generate release notes, and add a screenshot to the README. A tagged release is what makes a project look finished.

    finish properlybash
    git tag -a v1.0.0 -m "v1.0.0 — first complete version"
    git push origin v1.0.0
    gh release create v1.0.0 --generate-notes
$commands

Commands worth memorising

Every block below is copy-ready — use the Copy button, then paste it into your terminal. Expected output is shown underneath so you know what “working” looks like.

profile README repositorybash
gh repo create <your-username> --public --description "GitHub profile README" --clone

The repository name must match your username exactly for the README to appear on your profile.

a whole change in five commandsbash
git switch -c feature/hello
git commit -am "feat: add hello world page"
git push -u origin feature/hello
gh pr create --fill --base main
gh pr merge --squash --delete-branch

--fill takes the title and body from your commits, which keeps the loop quick on small personal projects.

deliberate conflictbash
git switch -c feature/a
printf 'line = "A"\n' > shared.txt
git add shared.txt && git commit -m "feat: A"
git switch main
printf 'line = "B"\n' > shared.txt
git add shared.txt && git commit -m "feat: B"
git merge feature/a
Output
CONFLICT (content): Merge conflict in shared.txt
Automatic merge failed; fix conflicts and then commit the result.

Project 3 asks for this on purpose — resolving a conflict you created is the fastest way to stop fearing them.

required check in one callbash
gh api --method PUT repos/:owner/:repo/branches/main/protection -f required_status_checks[strict]=true -f required_status_checks[contexts][]=test

The context must match the job name in your workflow, otherwise the check never satisfies the rule.

release the finished projectbash
gh release create v1.0.0 --generate-notes --latest
Output
https://github.com/ada/recipe-book/releases/tag/v1.0.0

Attach a build artefact if the project produces one, so the release is usable, not just informative.

$diagrams

Workflow diagrams

Diagram 1Six projects, one skill each

Do them in order: each project assumes the previous one is comfortable.

Reading the diagram
  1. Projects 1 and 2 build fluency with the daily loop on your own code.
  2. Projects 3 and 4 add collaboration and automation.
  3. Projects 5 and 6 are the ones that look like professional work in a portfolio.
Diagram 2The loop every project repeats

The commands stop being something you look up and start being something you type.

Reading the diagram
  1. Every project starts with a described piece of work, even when you are the only person involved.
  2. The change travels by branch and pull request, never by direct commits to main.
  3. Checks and a review gate the merge, exactly as they would on a team.
  4. Finishing means a tagged release, not just commits on main.
$example

Worked example

The complete workflow for a project that is finished, start to finish, in one terminal session.

shipping project 2bash
gh repo create simple-web --public --description "A tiny static web page" --license mit --clone
cd simple-web

printf '<h1>Hello</h1>\n' > index.html
printf 'body { font-family: system-ui; }\n' > style.css
git add .
git commit -m "feat: add landing page"
git push

git switch -c feature/footer
printf '<footer>Ada, 2026</footer>\n' >> index.html
git commit -am "feat: add footer"
git push -u origin feature/footer

gh pr create --base main --title "feat: add footer" --body "Adds the name and year to the page footer."
gh pr view --web          # read the diff before approving your own work
gh pr merge --squash --delete-branch

git switch main && git pull
git tag -a v1.0.0 -m "v1.0.0 — first complete version"
git push origin v1.0.0
gh release create v1.0.0 --generate-notes --latest
git log --oneline --graph
# * 9d2f4c1 (HEAD -> main, tag: v1.0.0) feat: add footer (#2)
# * 4f1c2ab feat: add landing page
Output
A public repository with a reviewed change on main, a protected workflow habit, and a tagged v1.0.0 release.
1gh repo create with --license mit and --clone sets up the repository, the license and the local clone in one command — the day-one conventions from Module 14.
2The first commit is made directly on main in a brand-new repository with nothing to protect yet, which is normal. Everything after this goes through a branch.
3The footer goes on a feature branch: push with -u, open the pull request, and read the diff in the browser before approving your own work.
4gh pr merge --squash --delete-branch performs the team-standard merge and removes the branch in one command.
5Pulling main locally keeps your checkout consistent with what actually merged, rather than trusting that it did.
6An annotated tag plus a release with generated notes is what turns a repository into something with a version a user can install — and the log shows the squash-merged pull request number, proving the change was reviewed.
$use cases

Where you'll use it

▸Building a portfolio that demonstrates process, not just code.
▸Practising a workflow in private before using it at work.
▸Preparing for a technical interview where you will be asked how you handle review and CI.
▸Setting up your own project the way a professional repository should be set up.
▸Learning a new language or framework while using a workflow you already trust.
▸Creating a template repository you clone for every future project.
$mistakes

Common mistakes

  • Skipping projects 1 and 2 because they look trivial, then struggling with the workflow in project 5.
  • Committing directly to main throughout a project and never using a pull request.
  • Treating CI as optional once it exists, and merging past a red check.
  • Letting a project end as a folder of commits with no tag and no README.
  • Doing project 5 in a huge project with no good first issue, then getting discouraged by slow review.
  • Refusing to use a second account for project 3 and missing the review experience entirely.
$best practices

Best practices

  • Complete the projects in order and keep each in its own repository.
  • Use a pull request even when you are the only reviewer — the diff view catches mistakes.
  • Reuse artefacts between projects: the CI workflow, the templates, the README structure.
  • Tag a release at the end of every project so it looks finished.
  • Write commit messages and pull request descriptions you would defend in a review.
  • Keep a CONTRIBUTING.md and LICENSE in every public repository from the start.
$exercise

Hands-on exercise

Complete all six projects

The projects section above is the exercise; work through them in order.

  1. Finish project 1 and confirm your profile page renders the README correctly.
  2. Finish project 2 with one squash-merged pull request and a v1.0.0 tag.
  3. Finish project 3 including a conflict you created and resolved on purpose.
  4. Finish project 4 and prove that a failing test blocks the merge.
  5. Finish project 5 with a real contribution merged upstream, or an open pull request that has passed the project’s checks.
  6. Finish project 6 and ask yourself whether a stranger could maintain the repository without asking you anything. Fix whatever the answer exposes.

💡 Hint: If you cannot find a suitable open-source project for project 5, contribute to documentation or add a test that covers a bug you found in a tool you already use.

Done when: Six repositories on your profile, each with a README, at least one reviewed pull request, and the later ones with CI and a tagged release.

$projects

Course projects

Six projects, each a little harder than the last. Finish one before starting the next — every project reuses the commands from the modules before it.

Project 1Personal README repositoryBeginner

A GitHub profile page that introduces you with real content instead of an empty page.

  1. Create a public repository whose name is exactly your GitHub username, with a README.md.
  2. Write a short biography: what you build, what you are learning, and one thing you are looking for.
  3. Add a skills section, using badges or plain text, listing the languages and tools you actually use.
  4. List two or three projects with a one-line description and a link to each repository.
  5. Add a contact section (email or a link to your site) and a note about what kind of collaboration interests you.
  6. Commit, push, and view your profile page to check the Markdown renders as intended on both desktop and mobile widths.
terminalbash
gh repo create <your-username> --public --description "GitHub profile README" --clone
cd <your-username>
# edit README.md
git add README.md
git commit -m "docs: add profile README"
git push

You're done when: Your profile page shows the biography, skills and project links, and the layout holds up on a narrow screen.

Project 2Simple web projectBeginner

Practise the full local loop and one complete pull request on a project you own.

  1. Create a repository with a README and a license, then clone it locally.
  2. Add the smallest possible working page: an index.html with a heading and a style.css with one rule.
  3. Commit the two files as one commit with a description of the page, then add a second commit that changes the heading text.
  4. Push, then create a feature branch and add a footer with your name and the year.
  5. Push the branch and open a pull request. Review your own diff in the Files changed tab before approving.
  6. Squash-merge the pull request, delete the branch, pull main locally, and confirm the footer is present.
terminalbash
git clone git@github.com:ada/simple-web.git
cd simple-web
# add index.html and style.css
git add .
git commit -m "feat: add landing page"
# add the footer on a branch
git switch -c feature/footer
git commit -am "feat: add footer"
git push -u origin feature/footer
gh pr create --base main --fill
gh pr merge --squash --delete-branch

You're done when: main contains the squash-merged footer commit, the feature branch is gone, and git status -sb reports no ahead or behind count.

Project 3Collaborative team projectIntermediate

Run a project the way a team does: issues, board, branches, review and a resolved conflict.

  1. Create a repository and a Project board with Todo, In Progress, Review and Done columns.
  2. File three issues describing three features, label them, and add them to the board.
  3. Create a branch for the first issue, implement it, push, and open a pull request that says "Closes #<issue>".
  4. Move the card through In Progress and Review as you work, and enable the built-in workflow that moves cards to Done when the issue closes.
  5. For the second issue, deliberately create a conflict: change the same lines on a branch and on main, then merge and resolve it.
  6. Review the third pull request from another account (or as a second reviewer role), request one change, then push the fix and merge.
terminalbash
gh issue create --title "Add search box" --label enhancement
gh project create --owner @me --title "Team project board"
git switch -c feature/search
git push -u origin feature/search
gh pr create --base main --title "feat: add search box" --body "Closes #1"
gh pr merge --squash

You're done when: Every issue closed through a merged pull request or a documented reason, the board is empty of open cards, and you have resolved a conflict you created on purpose.

Project 4CI pipelineIntermediate

Green checks on every push, and a merge that is impossible while they are red.

  1. Add .github/workflows/ci.yml with triggers for push and pull_request to main, and a single test job on ubuntu-latest.
  2. Add steps for checkout, language setup with caching, dependency install and the test command.
  3. Push the workflow on a branch and watch the run start in the Actions tab. Fix any failures.
  4. Add a second job that depends on the test job with needs: and builds the project.
  5. Configure branch protection on main so the test job is a required status check.
  6. Break a test on purpose, push, confirm the merge is blocked, then fix it and watch the check go green.
terminalbash
mkdir -p .github/workflows
# add ci.yml
gh api --method PUT repos/:owner/:repo/branches/main/protection \
  -f required_status_checks[strict]=true \
  -f required_status_checks[contexts][]=test
gh run list --limit 5

You're done when: A pull request with a failing test cannot be merged, and the same pull request can be merged as soon as the check passes.

Project 5Open-source contributionAdvanced

Get a change reviewed and merged in somebody else’s project, using their standards.

  1. Find a repository you actually use that has a good first issue label or a documentation gap you have noticed.
  2. Read CONTRIBUTING.md and the code of conduct, and fork the repository.
  3. Clone your fork, add the original as upstream, sync main, and branch with a name matching the issue.
  4. Make the smallest change that solves it, run the project’s tests or lint, and commit using their message conventions.
  5. Push to your fork and open a pull request against the upstream base branch using their template, linking the issue.
  6. Respond to review feedback: reply to every comment, push requested changes as new commits, and rebase with --force-with-lease if upstream moves.
terminalbash
gh repo fork owner/project --clone
cd project
git remote add upstream https://github.com/owner/project.git
git fetch upstream && git switch main && git merge --ff-only upstream/main
git switch -c docs/fix-install-link
# ...fix, then...
git push -u origin docs/fix-install-link
gh pr create --repo owner/project --base main --fill

You're done when: Your pull request is open against the upstream repository with a linked issue, the project’s checks pass, and you have replied to every review comment.

Project 6Production-ready repositoryAdvanced

The capstone: a repository a small team could maintain without asking you anything.

  1. Protect main: require one approval, require status checks, require conversation resolution, and disallow force-pushes and deletions.
  2. Add .github/pull_request_template.md and a bug report issue form.
  3. Add .github/CODEOWNERS covering your source and documentation paths.
  4. Add the CI workflow from project 4, plus secret scanning and Dependabot alerts and security updates.
  5. Write CONTRIBUTING.md, a LICENSE, a CHANGELOG.md and a README explaining how to run and test the project.
  6. Cut v1.0.0: annotate a tag, create a release with generated notes, attach the build artefact if there is one, and add a smoke-test step or a documented rollback to the README.
  7. Optional deployment: enable GitHub Pages from a workflow, or deploy the built artefact to a staging environment with a required reviewer before production.
terminalbash
gh repo edit --enable-vulnerability-alerts --enable-dependabot-security-updates
gh api --method PUT repos/:owner/:repo/branches/main/protection \
  -f required_pull_request_reviews[required_approving_review_count]=1 \
  -f required_pull_request_reviews[require_code_owner_reviews]=true \
  -f required_status_checks[strict]=true \
  -f required_status_checks[contexts][]=test \
  -f enforce_admins=true \
  -f allow_force_pushes=false \
  -f allow_deletions=false
git tag -a v1.0.0 -m "v1.0.0 — first complete version"
git push origin v1.0.0
gh release create v1.0.0 --generate-notes --latest

You're done when: A stranger can clone the repository, read the README, run the tests, understand the contribution process, see a protected main branch with green checks, and install your published v1.0.0 release.

$quiz

Checkpoint quiz

0 of 5 answered · 0 correct

  1. Multiple choiceQ1

    How do you make a README appear on your GitHub profile page?

  2. TroubleshootingQ2

    Your project 4 workflow is green locally but the required check never satisfies branch protection, so the merge stays blocked. What is the usual cause?

  3. Multiple choiceQ3

    Why do the projects insist on a release at the end?

  4. True or falseQ4

    True or false: opening a pull request is pointless when you are the only contributor.

  5. Multiple choiceQ5

    What signals that project 6 is genuinely production-ready?

$summary

Module summary

  • Six projects, each adding one layer: presentation, the core loop, collaboration, CI, contribution, production readiness.
  • Follow the same workflow every time: issue, branch, commits, pull request, checks, review, merge, release.
  • Use a pull request even solo; the diff view is a review tool, not a social one.
  • Reuse your own artefacts — the CI workflow, templates and README structure — between projects.
  • A tagged release with generated notes is what makes a project look finished.
  • Finish project 6 by asking whether a stranger could maintain it without your help.

Next up: The final assessment brings together all fifteen modules: a broad quiz across every topic and a capstone brief, followed by your course-completion state.

Recommended resourcesAffiliate links · may earn us a commission

Recommended for learners

Structured coding coursesVideo courses that pair well with visual practice — pick one language and go deep.Browse courses Pro code editor & AI assistantWrite, debug and explain code faster while you practice the patterns here.Try it free Classic DSA interview booksThe reference books interviewers themselves learned from — great next to the visualizers.See the books

Practice what you learned

Put the GitHub course to work: open one of the company-wise repositories and follow the workflow you just learned, branch to release.