Skip to content

How to Build a GitHub Portfolio: Setup Checklist from GitHub's Docs

Quick answer

Build a GitHub portfolio from GitHub's own rules: profile README, six pins, why commits do not show, and GitHub Pages.

How to Build a GitHub Portfolio: Setup Checklist from GitHub's Docs

A GitHub portfolio is your GitHub profile set up so a recruiter can judge your work in about a minute: a profile README in a public repository named after your username, up to six pinned repositories, projects with clear READMEs, and optionally a GitHub Pages site. Unlike a README design guide, this checklist covers only the setup rules in GitHub's own documentation.

Key takeaways

  • A profile README needs a public repository named exactly like your username, with a README.md in the root that has content.
  • You can pin up to six repositories and gists combined, so choose the six that show your range.
  • Commits count towards your contribution graph only under specific conditions: linked email, default branch, not in a fork.
  • GitHub Pages can host a static portfolio site, with one site per account and per repository.

On this page:

What does a GitHub portfolio checklist look like?

Do the four setup items first, then improve each repository. The table shows each item, the rule from GitHub's docs, and the common slip.

ItemGitHub's ruleCommon slip
Profile READMEPublic repository named like your username, with a README.md in the root that contains contentRepository set to private or name misspelled
Pinned itemsUp to six repositories and gists, combinedPinning half-finished experiments
Contribution graphLinked email, default or gh-pages branch, not a fork, up to 24 hours to appearCommits made with an unlinked email
GitHub PagesStatic HTML, CSS and JavaScript; one site per account and one per repositoryExpecting a server-side backend
Project READMEsNot a GitHub rule; our suggestionNo setup or run instructions

This post stays on the setup rules. For the content and design of the README itself, our guides on a standout GitHub profile README and creating an impressive profile README go deeper.

How do you create the profile README?

Create a repository whose name matches your username and add a README.md. According to GitHub Docs, all four conditions must be true: the repository name matches your GitHub username, it is public, it contains a file named README.md in its root, and that file contains any content.

  1. Create a new repository on GitHub with exactly your username as its name.
  2. Set it to public.
  3. Add a README.md in the root.
  4. Write a few lines: who you are, what you build, and links to your best projects.

Keep the README short. A recruiter scanning it wants your focus (for example, backend with Python), two or three highlighted projects and a way to contact you. For a deeper look at project-level READMEs, see how to create an effective project README.

Which six repositories should you pin?

Pin the six that best show range and finish. GitHub lets you select up to six repositories and gists, combined, per its GitHub Docs page. Fewer, better-finished items beat a full grid of unfinished ones.

Worked example with made-up numbers: a student has nine projects. She pins six: two full-stack apps, one data project, one API with tests, one small tool she uses herself and one gist of a useful script. The other three stay unpinned until they have a README. One earlier project is a fork of someone else's repository; rather than pin the fork, she opens a pull request to the original and mentions it in her README.

Why are your commits not showing?

Usually because of one of four conditions from the GitHub Docs page. Walk through them in order.

  1. Email: the commit must be made with an email address connected to your GitHub account (or the GitHub noreply address).
  2. Branch: commits are counted only if they are made in the default branch or the gh-pages branch.
  3. Fork: commits made in a fork do not count toward your contributions; open a pull request into the parent repository to count them.
  4. Time: qualifying commits can take up to 24 hours to appear.

If you are new to the tool, an introduction to Git commands covers the commands behind these checks. This post does not cover private repositories or private contribution settings; see GitHub's own help pages for those.

Can you host a portfolio site on GitHub?

Yes, if it is static. According to GitHub Docs, GitHub Pages is a static site hosting service that takes HTML, CSS and JavaScript files straight from a repository. The page also states a limit of one Pages site per user or organisation account and one per repository.

Use it for a simple portfolio page that links to your pinned projects. If your plan is a data or AI portfolio, the data science portfolio checklist shows what to add. Keep the site light: a name, a short bio, three projects, links to GitHub and LinkedIn.

Can you check your setup with a script?

You can check the commit-related rules locally. This shell snippet, run inside any of your repositories, prints the email Git will use, the current branch and the author email of the last commit. It uses standard Git commands only.

echo "Configured email: $(git config user.email)"
echo "Current branch:   $(git branch --show-current)"
echo "Last commit by:   $(git log -1 --format=%ae)"

Compare the email with the ones listed in your GitHub account settings, and make sure the branch is the repository's default branch. If the email does not match, set it with git config user.email "you@example.com" using an address linked to your account, then make new commits. Existing commits keep their old email.

Next step

Today, create or fix your profile README repository, then pin your best six items and run the script above in each. Add a README to any pinned project that lacks one. If you want to build AI projects worth pinning, the Leap - AI Residency Cohort by Masai is an 8-week programme. Also read tech resume tips and examples so the profile and resume tell the same story.

Frequently asked questions

How do I create a GitHub profile README?

Create a public repository named exactly like your GitHub username and add a README.md in its root with some content. GitHub Docs lists these as the required conditions.

How many repositories can I pin on my GitHub profile?

You can select up to six repositories and gists, combined, according to GitHub Docs. Choose finished projects that match the roles you apply for.

Why are my commits not showing on my GitHub profile?

Check four things from GitHub Docs: the commit email is linked to your account, the commit is on the default or gh-pages branch, it was not made in a fork, and up to 24 hours have passed.

Can I host a portfolio website on GitHub?

Yes. GitHub Pages is a static site hosting service that takes HTML, CSS and JavaScript files. GitHub's page states one Pages site per user or organisation account and one per repository.

Do commits in a fork count on my profile?

No. GitHub Docs says commits made in a fork will not count toward your contributions. To count them, open a pull request into the parent repository.

Share LinkedIn X WhatsApp
×

Our Courses

Practice-Based Learning Tracks, Supercharged By A.I.