Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何设置 gc.reflogExpire 以使项目永不过期? 它还接受哪些其他时间间隔格式?
手册页说您可以将其设置为“90 天或 3 个月”,但没有指定它期望的格式。
将 gc.refLogExpire 设置为“从不”应该可以解决问题。
我不确定格式记录在哪里,如果有的话,但git reflog使用approxidate函数 fromdate.c来解析到期时间。可能的值之一是“从不”。</p>
git reflog
approxidate
date.c