我在私有(private)仓库中创建了一个包含许多分支的项目,我目前正在使用名为 Mp6-The-Three-Cup-Shuffle
我多次将我的提交推送到分支中,但没有一个被记录在我的贡献图中。
我已经删除了文件夹中的所有内容,然后再次重新创建包,但是文件夹和 Remote 仍然相同,我不需要使用 git checkout Mp6-The-Three-Cup-Shuffle
。会有影响吗?
我已经检查了我的用户名和电子邮件,它们已经配置好了。
我还可以看到我的提交已被推送并且更改已在 github 中
但没有像贡献图片中解释的那样记录下来,
任何建议都可以帮助解释为什么这不起作用?我怎样才能让它发挥作用?
注意:我正在从 IntelliJ 推送所有内容
最佳答案
GitHub 只计算对 default 和 gh-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)贡献:
但是,贡献图不会说明您正在处理哪个 pricate repos:
干杯。
关于Github |为什么当我推送到特定分支时没有记录在我的贡献中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49586318/