clockwerk
V2EX  ›  GitHub

换了台电脑 github 上传出问题

  •  
  •   clockwerk · Mar 31, 2015 · 2834 views
    This topic created in 4060 days ago, the information mentioned may be changed or developed.

    换了新公司电脑以后,github一直出问题,发现每次都是另外一个id提交http://ww4.sinaimg.cn/bmiddle/686c6057jw1eqp0q7huzzj20dt04474r.jpg
    然后主页的contribution 也不统计了
    http://ww4.sinaimg.cn/bmiddle/686c6057jw1eqp0q823grj20l104dt9c.jpg

    10 replies    2015-04-01 08:35:56 +08:00
    clockwerk
        1
    clockwerk  
    OP
       Mar 31, 2015
    clockwerk
        2
    clockwerk  
    OP
       Mar 31, 2015
    oott123
        3
    oott123  
       Mar 31, 2015   ❤️ 1
    他是根据邮箱来统计的。
    ijse
        4
    ijse  
       Mar 31, 2015   ❤️ 2
    `git config --global user.name nellace`
    `git config --global user.email [email protected]`
    shiniv
        5
    shiniv  
       Mar 31, 2015   ❤️ 1
    你设置用于提交的邮箱没有跟github关联
    clockwerk
        6
    clockwerk  
    OP
       Mar 31, 2015
    @oott123
    @ijse
    @shiniv 谢谢各位 就是这个样子
    bsbgong
        7
    bsbgong  
       Mar 31, 2015
    在本地的repo目录下执行: $git config -l
    查看当前repo配置的用户和邮箱
    然后用修改成自己的
    clockwerk
        8
    clockwerk  
    OP
       Apr 1, 2015
    @oott123
    @ijse
    @shiniv @ijse
    @oott123
    @shiniv
    谢谢,还有一个问题我有一个文件夹git status 里面显示
    On branch master2
    Your branch is ahead of 'origin/master' by 3 commits.
    (use "git push" to publish your local commits)

    master2我没有这个分支啊
    clockwerk
        9
    clockwerk  
    OP
       Apr 1, 2015

    这个是git config -l 的信息
    @ijse
    @bsbgong
    bsbgong
        10
    bsbgong  
       Apr 1, 2015
    @nellace
    前面的评论里大家说得都够清楚了
    你可能需要先补一下git基础,然后再来问。不然你永远会有无穷尽的问题。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3563 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 239ms · UTC 10:50 · PVG 18:50 · LAX 03:50 · JFK 06:50
    ♥ Do have faith in what you're doing.