如果提交由标记而不是分支引用,是否会被垃圾收集? [英] Will a commit be garbage collected if it's referred to by tag but not by branch?

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

问题描述

我有一个带注释的标签引用一个提交(它是否被注释是否重要?)并且没有分支引用那里.提交是否会在一段时间后被垃圾收集?

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天全站免登陆