gpt4 book ai didi

git - 为什么 git reflog 过期不起作用

转载 作者:太空狗 更新时间:2023-10-29 14:00:03 28 4
gpt4 key购买 nike

我想删除 reflog 中的一些历史记录。我试过了

git reflog expire --expire=now

但是 .git/ref/logs 中的文件没有任何变化。什么是正确的解决方案?

最佳答案

好吧,我终于发现必须使用 --all 来使所有 reflog 过期。

git reflog expire --expire=now --all

关于git - 为什么 git reflog 过期不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29203326/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com