本文介绍了合并GitHub帐户-贡献和统计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

根据 https://help.github.com/articles/transferring-a-repository/).我的其他帐户是否将从我的旧帐户继承供款编号(并因此继承供款图和活动概览)?换句话说,是什么决定了GitHub帐户中的贡献数量:提交的电子邮件地址是否与与我的GitHub帐户相关联的电子邮件地址之一相对应?

I want to merge my two GitHub accounts (meaning transferring repositories ownership to one account, and deleting the other, according to https://help.github.com/articles/transferring-a-repository/). Do my other account will inherit the contributions number (and therefore contribution graph and activity overview) from my old account? In other words, what determines the number of contributions in a GitHub account: is it when the email address of the commit correspond to one of the email adresses associated with my GitHub account?

我已阅读合并两个github帐户,但未回答贡献数问题.

I have read Merging two github accounts but it doesn't answer the number of contributions question.

推荐答案

转移的回购将继承问题,提取请求,贡献历史,星级,手表.

Transferred repos will inherit issues, pull request, contribution history, stars, watches.

贡献历史是一个不同的故事,其解释方式如下: https://help.github.com/articles/viewing-contributions-on-your-profile/要从那里引用:

The contribution history is a different story, and how it's calculated is explained here: https://help.github.com/articles/viewing-contributions-on-your-profile/ To quote from there:

  • 提交到存储库的默认分支或gh-pages分支
  • 打开问题
  • 提出拉取请求
  • 提交拉取请求审核
  • 共同创作在存储库的默认分支或gh页中提交分支

假设您有2个用户:A < [email protected]> ,B < [email protected]> ,并且您要将B合并到A:

Assume you have 2 users: A <[email protected]>, B <[email protected]> and you're merging B into A:

  • 像打开公关",打开问题",评论问题/公关",对公关进行代码审查"这样的事件都将丢失,这些事件被视为对B的个人资料的贡献
  • 如果您在A的帐户设置中将 [email protected] 作为电子邮件之一添加,则master分支上的"commits"之类的事件将被添加到A中
  • Events like "opening a PR", "opening an issue", "commenting on issue/PR", "making code review on a PR" which count as contribution on B's profile will be lost
  • Events like "commits" on the master branch will be added to A –if you add [email protected] as one of your emails in A’s account settings

当您将B的存储库转移到A,然后删除帐户B时.

when you transfer B's repos to A, and then delete account B.

这篇关于合并GitHub帐户-贡献和统计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-04 19:58