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

换了台电脑 github 上传出问题

  •  
  •   nellace · 2015-03-31 17:04:42 +08:00 · 2293 次点击
    这是一个创建于 3336 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    10 条回复    2015-04-01 08:35:56 +08:00
    nellace
        1
    nellace  
    OP
       2015-03-31 17:08:28 +08:00
    nellace
        2
    nellace  
    OP
       2015-03-31 17:08:38 +08:00
    oott123
        3
    oott123  
       2015-03-31 17:13:54 +08:00   ❤️ 1
    他是根据邮箱来统计的。
    ijse
        4
    ijse  
       2015-03-31 17:14:07 +08:00   ❤️ 2
    `git config --global user.name nellace`
    `git config --global user.email [email protected]`
    shiniv
        5
    shiniv  
       2015-03-31 17:17:07 +08:00   ❤️ 1
    你设置用于提交的邮箱没有跟github关联
    nellace
        6
    nellace  
    OP
       2015-03-31 20:23:21 +08:00
    @oott123
    @ijse
    @shiniv 谢谢各位 就是这个样子
    bsbgong
        7
    bsbgong  
       2015-03-31 20:39:13 +08:00
    在本地的repo目录下执行: $git config -l
    查看当前repo配置的用户和邮箱
    然后用修改成自己的
    nellace
        8
    nellace  
    OP
       2015-04-01 08:20:49 +08:00
    @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我没有这个分支啊
    nellace
        9
    nellace  
    OP
       2015-04-01 08:25:09 +08:00

    这个是git config -l 的信息
    @ijse
    @bsbgong
    bsbgong
        10
    bsbgong  
       2015-04-01 08:35:56 +08:00
    @nellace
    前面的评论里大家说得都够清楚了
    你可能需要先补一下git基础,然后再来问。不然你永远会有无穷尽的问题。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   961 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:01 · PVG 04:01 · LAX 13:01 · JFK 16:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.