如何在 Github 的配置文件中显示 readme.md 文件?

How to display readme.md file on profile in Github?

我在我的 username.github.io 存储库中创建了一个 README.md 文件,但它没有出现在我的个人资料页面上:

Profile READMEs must be located in a public repository named after your GitHub user name。这与您的 GitHub 页面用户站点不同。

假设您的 GitHub 用户名是 username:

  • 您的 GitHub 页面用户站点应该位于名为 username.github.io 的存储库中。您已经拥有其中之一。

  • 您个人资料 README.md 的存储库 应该 命名为 username。使用该名称创建一个新存储库并在其中添加您的 README.md

您只需创建一个 新存储库 并将名称作为您的用户名 (ProgrammerGaurav) 并在该存储库中创建一个 README.md。

我们可以通过visual studio编辑器创建。创建名称为 README.md 的文件,并在该文件中创建您的页面配置文件页面。并通过版本控制

推送到github

创建一个与您的用户名同名的存储库。假设您的用户名是 ProgrammerGaurav。因此您需要创建一个名为 ProgrammerGaurav 的新存储库。

Note: at the time of this writing, in order to access the profile README feature, the letter-casing must match your GitHub username and your GitHub repository visibility should be in public.

在该存储库中创建自述文件并根据您的需要进行编辑。

username.github.io 的存储库应该是 https://github.com/username/username.github.io 这是一个 github 页面,参见 types-of-github-pages-sites

To publish a user site, you must create a repository owned by your user account that's named <username>.github.io.


profile with README.md 的存储库应该是 https://github.com/username/username

managing-your-profile-readme

这是您的个人资料。

You've created a repository with a name that matches your GitHub username. The repository is public. The repository contains a file named README.md in its root. The README.md file contains any content.

并且您需要在创建存储库后单击 Share to profile 按钮以将内容显示到您的个人资料中。


所以,它们是不同的存储库。

另见 awesome-github-profile-readmegithub-readme-stats

您会在存储 README.md 的存储库右侧看到一个绿色弹出窗口 window。单击“添加到配置文件”以使其生效。

使用您的用户名创建存储库。您的个人资料自述文件将被创建,然后您可以编辑它