• 请不要在回答技术问题时复制粘贴 AI 生成的内容
toms0301
V2EX  ›  程序员

请教一个 github 的问题

  •  
  •   toms0301 · Mar 27, 2019 · 2565 views
    This topic created in 2626 days ago, the information mentioned may be changed or developed.

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

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

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

    请教怎么解决这个问题

    Latin
        1
    Latin  
       Mar 27, 2019
    盘它就完了
    gavindexu
        2
    gavindexu  
       Mar 27, 2019 via iPhone
    你开空调啊
    ErrorMan
        3
    ErrorMan  
       Mar 27, 2019 via Android
    你的 commit 作者信息没有和 github 账号的对应上,user.name 应该是 github 用户名,user.email 如果你不打算暴露的话,在 github 个人资料页能找到一个含 noreplay 关键词的匿名邮箱,如果无所谓暴露的话填你的 github 邮箱。信息匹配的 commit 才会关联到你的账号上
    stebest
        4
    stebest  
       Mar 27, 2019
    热得快炸了
    shiww
        5
    shiww  
       Mar 27, 2019
    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  
       Mar 27, 2019
    username 无所谓,邮箱一定要对上号
    sugars
        7
    sugars  
    PRO
       Mar 27, 2019
    github 上设置的邮箱要和你 git config --global user.email 一致
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1691 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 80ms · UTC 16:27 · PVG 00:27 · LAX 09:27 · JFK 12:27
    ♥ Do have faith in what you're doing.