压入,重新设置,重置--soft如何影响github贡献页面? [英] How does squashing, rebasing, reset --soft affect github contributions page?

查看:119
本文介绍了压入,重新设置,重置--soft如何影响github贡献页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于某些我从事或从事的项目,有时最好将所有更改压缩/重新整理为单个提交.但是,我想知道这如何影响github上的贡献页面.

For some projects I do or work on sometimes it is usually best that we squash/rebase all changes into a single commit. However, I was wondering how this affects the contributions page on github.

例如,如果我花了2个月时间对自己创建的项目进行更改,然后在2个月后决定将其重新构建为一个提交,那么github是否会删除过去两个月中地图上的所有贡献多维数据集? >

For example, if I spent 2 months pushing changes to a project I created and then after 2 months decided to rebase it to one single commit, would github remove all the contribution cubes on the map for the past two months?

推荐答案

我仍然看到了这一点,所以我想我也可以回答这个问题.因此,答案是肯定的.它将从图中删除贡献.它不会立即执行操作,因为从技术上讲,不再有任何东西指向的提交仍可以在一段时间内到达,但最终会被垃圾收集,从而从您的贡献页面中删除.

I saw this still here so I figured I might as well answer the question. So the answer is YES. It will remove the contributions from the graph. It won't do it right away because commits that are no longer being pointed to by anything can technically still be reached for awhile but are eventually garbage collected and thus removed from your contributions page.

这篇关于压入,重新设置,重置--soft如何影响github贡献页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆