V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
toms0301
V2EX  ›  程序员

请教一个 github 的问题

  •  
  •   toms0301 · 2019-03-27 11:30:18 +08:00 · 1955 次点击
    这是一个创建于 1859 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

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

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

    请教怎么解决这个问题

    7 条回复    2019-03-27 14:09:57 +08:00
    Latin
        1
    Latin  
       2019-03-27 11:33:43 +08:00
    盘它就完了
    gavindexu
        2
    gavindexu  
       2019-03-27 12:45:40 +08:00 via iPhone
    你开空调啊
    ErrorMan
        3
    ErrorMan  
       2019-03-27 12:51:14 +08:00 via Android
    你的 commit 作者信息没有和 github 账号的对应上,user.name 应该是 github 用户名,user.email 如果你不打算暴露的话,在 github 个人资料页能找到一个含 noreplay 关键词的匿名邮箱,如果无所谓暴露的话填你的 github 邮箱。信息匹配的 commit 才会关联到你的账号上
    stebest
        4
    stebest  
       2019-03-27 13:05:44 +08:00
    热得快炸了
    shiww
        5
    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
        6
    hirasawayui  
       2019-03-27 13:40:23 +08:00
    username 无所谓,邮箱一定要对上号
    sugars
        7
    sugars  
       2019-03-27 14:09:57 +08:00
    github 上设置的邮箱要和你 git config --global user.email 一致
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5533 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 06:49 · PVG 14:49 · LAX 23:49 · JFK 02:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.