Does Git never delete any information?

前端 未结 2 1355
孤独总比滥情好
孤独总比滥情好 2021-01-06 04:56

I have read this post: http://jenkins-ci.org/content/summary-report-git-repository-disruption-incident-nov-10th

which describes an incident where a user accidentally

2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-06 05:34

    Git does delete things eventually. It auto garbage collects every "5000 objects." I am not sure if that means 5000 commits or if it refers to something else. There are ways of undoing things, although when a person force pushes from an old version of a repo can being annoying. Depending on if you delete the bad push or revert there will be garbage in your git history, but git does eventually clean up.

提交回复
热议问题