压缩、变基、重置 --soft 对 github 贡献页面有何影响? [英] How does squashing, rebasing, reset --soft affect github contributions page?

查看:21
本文介绍了压缩、变基、重置 --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天全站免登陆