anonymoustian
V2EX  ›  GitHub

github 上 push 代码但是 Contributions 上面的灯并不亮

  •  
  •   anonymoustian · Mar 1, 2016 · 3715 views
    This topic created in 3753 days ago, the information mentioned may be changed or developed.

    有时候我 push 代码上去 contributions 下面的对应日期就会变绿, 如果今天提交少的话就是浅绿, 提交多的话就是深绿,但是为什么最近提交代码上去 只有日志会记录,但是 日历并不会变绿呢?

    6 replies    2016-03-01 17:26:39 +08:00
    blahgeek
        1
    blahgeek  
       Mar 1, 2016
    算的是 log 中 commit 的时间,不是 push 上去的时间
    celadevra
        2
    celadevra  
       Mar 1, 2016   ❤️ 1
    可能 git 设置中 user.email 不是 GitHub 上注册的邮箱。
    foreverqh
        3
    foreverqh  
       Mar 1, 2016 via iPhone   ❤️ 1
    也有可能是 fork 过来的代码只是在自己这边 push ,没有 pull request 的话也是不会亮灯的,关于日历灯的计算在 GitHub 网站上有具体的说明。
    binux
        4
    binux  
       Mar 1, 2016   ❤️ 1
    master 才显示
    mcfog
        5
    mcfog  
       Mar 1, 2016   ❤️ 1
    为了格子而 push 何苦呢?

    不如自己随便画吧 https://github.com/gelstudios/gitfiti
    hxtheone
        6
    hxtheone  
       Mar 1, 2016   ❤️ 1
    官方有一些介绍, 比如这个 https://help.github.com/articles/viewing-contributions-on-your-profile-page/

    总结一下 LS 说的就是, 提交时必须是注册邮箱, 必须提交到 master 分支, 如果是 fork 的要提 pr 到原 repo 的 master, 显示用的是 commit 时间
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5689 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 61ms · UTC 06:53 · PVG 14:53 · LAX 23:53 · JFK 02:53
    ♥ Do have faith in what you're doing.