请教一个 github 的问题

2019-03-27 11:30:18 +08:00
 toms0301

为什么点击 Contribution activity 中的 commit 记录看不到自己的提交记录

正常情况下,点击应该可以看到提交的具体内容

我现在点击进去,显示的是 No commits found for xxxx

请教怎么解决这个问题

1961 次点击
所在节点    程序员
7 条回复
Latin
2019-03-27 11:33:43 +08:00
盘它就完了
gavindexu
2019-03-27 12:45:40 +08:00
你开空调啊
ErrorMan
2019-03-27 12:51:14 +08:00
你的 commit 作者信息没有和 github 账号的对应上,user.name 应该是 github 用户名,user.email 如果你不打算暴露的话,在 github 个人资料页能找到一个含 noreplay 关键词的匿名邮箱,如果无所谓暴露的话填你的 github 邮箱。信息匹配的 commit 才会关联到你的账号上
stebest
2019-03-27 13:05:44 +08:00
热得快炸了
shiww
2019-03-27 13:28:13 +08:00
Commits will appear on your contributions graph if they meet all of the following conditions:
-The email address used for the commits is associated with your GitHub account.
-The commits were made in a standalone repository, not a fork.
-The commits were made:
--In the repository's default branch (usually master)
--In the gh-pages branch (for repositories with Project Pages sites)

In addition, at least one of the following must be true:
-You are a collaborator on the repository or are a member of the organization that owns the repository.
-You have forked the repository.
-You have opened a pull request or issue in the repository.
-You have starred the repository.

https://help.github.com/en/articles/why-are-my-contributions-not-showing-up-on-my-profile
hirasawayui
2019-03-27 13:40:23 +08:00
username 无所谓,邮箱一定要对上号
sugars
2019-03-27 14:09:57 +08:00
github 上设置的邮箱要和你 git config --global user.email 一致

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/549040

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX