如果提交是通过标签而不是分支引用的,是否将垃圾回收? [英] Will a commit be garbage collected if it's referred to by tag but not by branch?

查看:61
本文介绍了如果提交是通过标签而不是分支引用的,是否将垃圾回收?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带注释的标记,该标记指向一个提交(是否带有注释,这有关系吗?),并且那里没有分支引用.会在一段时间后对提交进行垃圾回收吗?

I've got an annotated tag referring to a commit (does it matter if it is annotated?) and no branch referring there. Will the commit be garbage collected after some time?

推荐答案

否,不会对提交进行垃圾收集.来自标记的引用足以使提交保持活动状态.

No, the commit will not be garbage collected. A reference from a tag is sufficient to keep a commit alive.

这篇关于如果提交是通过标签而不是分支引用的,是否将垃圾回收?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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