Github |为什么当我推送到特定分支时没有记录在我的贡献中

标签 git github intellij-idea

我在私有(private)仓库中创建了一个包含许多分支的项目,我目前正在使用名为 Mp6-The-Three-Cup-Shuffle

的特定分支

我多次将我的提交推送到分支中,但没有一个被记录在我的贡献图中。

我已经删除了文件夹中的所有内容,然后再次重新创建包,但是文件夹和 Remote 仍然相同,我不需要使用 git checkout Mp6-The-Three-Cup-Shuffle 。会有影响吗?

我已经检查了我的用户名和电子邮件,它们已经配置好了。

enter image description here

我还可以看到我的提交已被推送并且更改已在 github 中

enter image description here

但没有像贡献图片中解释的那样记录下来,

enter image description here

任何建议都可以帮助解释为什么这不起作用?我怎样才能让它发挥作用?

注意:我正在从 IntelliJ 推送所有内容

最佳答案

GitHub 只计算对 defaultgh-pages 分支的贡献。

这是来自 GitHub 的引述:

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)

请记住,在使用私有(private)仓库时,您必须允许 GitHub 显示您的私有(private)贡献:

enter image description here

但是,贡献图不会说明您正在处理哪个 pricate repos:

enter image description here

干杯。

关于Github |为什么当我推送到特定分支时没有记录在我的贡献中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49586318/

相关文章:

git - Flutter:gitignore 被...忽略

git fork repo 到同一个组织

git - 使其他 github 用户只能 fork 我的私有(private)存储库并向我发送 pull 请求

android - 如何删除 Android Studio (Intellij) 中的右侧边距线?

android - Android Studio 添加Google Play 导致编译失败

intellij-idea - 如何删除 Intellij IDEA 14 中的项目?

linux - 为什么我们在 Linux 服务器上安装 git 时要为程序(如 git)创建一个新用户?

git - 使用Git管理一个网站的两个版本

git - 找出文件是从哪个git提交中获取的

github - 向包中添加示例时是否应该更新 semver 版本?