【发布时间】:2015-10-25 19:52:16
【问题描述】:
我知道reflog 的压缩版本存储在.git/packed-refs
但是实际的 reflog 位于哪里以及当一种类型 git reflog 时 git 如何恢复历史记录?
【问题讨论】:
-
.git/packed-refs包含普通引用,而不是 reflog。
标签: git git-reflog
我知道reflog 的压缩版本存储在.git/packed-refs
但是实际的 reflog 位于哪里以及当一种类型 git reflog 时 git 如何恢复历史记录?
【问题讨论】:
.git/packed-refs 包含普通引用,而不是 reflog。
标签: git git-reflog
引用日志位于.git/logs/<refname>。例如,对于名为 master 的分支(例如,refs/heads/master),您可能需要 .git/logs/refs/heads/master。
HEAD当然是异常的,是.git/logs/HEAD。
【讨论】: