How to create a GitHub profile README
A profile README is the block of text and images at the top of your GitHub profile page. GitHub builds it from one specific repository, so setting it up is a matter of creating that repository and writing a README in it.
What GitHub needs
GitHub shows a README on your profile when all four of these hold:
| Requirement | Example for the username octocat |
|---|---|
| A repository named exactly like your username | octocat/octocat |
| The repository is public | Visibility: Public |
A file named README.md in its root | octocat/octocat/README.md |
| The file is not empty | Any text at all |
Create it in five steps
1. Open github.com/new.
2. Under Repository name, type your username exactly. GitHub confirms with a
note that this is a special repository.
3. Select Public.
4. Turn on Add a README file.
5. Click Create repository, then Edit README.
Save any text and your profile page shows it. The pre-filled template is fine to keep, replace, or delete.
If you made a public repository with your username before July 2020, GitHub does not show it automatically. Open the repository and click Share to profile.
Add a stats card
Paste this line into the README, replace the username in both places, and commit:
[](https://gh-stats.com)
It renders one card with a score out of 100, your contribution timeline, top collaborators, language breakdown and commit streaks, and it updates on its own. The first request for a new username queues a build, so give it a minute.
Want only one part? The top languages card works the same way, and there are five themes to pick from. Already using github-readme-stats? See the migration guide.
Common questions
I created the repository but my profile shows nothing. Check the four requirements above. The usual cause is a private repository or a name that does not match the username exactly.
Can I edit it later? Yes. Every commit to that README.md
updates your profile page.
Does the card need a token or an account? No. It reads public GitHub activity only, and there is nothing to sign up for.