git - 查看过期的 reflog 日志

标签 git git-commit git-reflog reflog

有没有办法查看过期的reflogs?我一直在保留几个月前在本地分支上所做的一些本地提交,并且我通过经常 rebase 使其与我们的远程分支保持同步。不知何故,我丢失了该分支的所有本地提交并且无法恢复它,因为 git reflog 没有显示超过特定日期的日志。

最佳答案

一旦引用日志过期,它们就会从引用日志中删除。因此,您不会按照设计在 reflog 中看到它们。

参见 man git-reflog .

关于git - 查看过期的 reflog 日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35274750/

相关文章:

linux - Github - 旧帐户的权限被拒绝

Git 从分支 checkout 文件而不更改索引

git 提交 : cannot read lockfile

git - 我可以将一个 fork 的提交 merge 回原始项目吗?

java - 使用 git 和 netbeans 将提交推送到多个分支

git - 在 reflog 过期和 gc prune 后推送到源

Git 的著名 "ERROR: Permission to .git denied to user"

xcode - 无法在 xcode 中推送远程 git 分支

git - 确定是什么阻止了从 git 中删除提交