【问题标题】:Where does git store its reflog?git 在哪里存储它的 reflog?
【发布时间】:2015-10-25 19:52:16
【问题描述】:

我知道reflog 的压缩版本存储在.git/packed-refs 但是实际的 reflog 位于哪里以及当一种类型 git reflog 时 git 如何恢复历史记录?

【问题讨论】:

  • .git/packed-refs 包含普通引用,而不是 reflog。

标签: git git-reflog


【解决方案1】:

引用日志位于.git/logs/<refname>。例如,对于名为 master 的分支(例如,refs/heads/master),您可能需要 .git/logs/refs/heads/master

HEAD当然是异常的,是.git/logs/HEAD

【讨论】:

    猜你喜欢
    • 2011-07-27
    • 2011-03-06
    • 2016-03-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-19
    相关资源
    最近更新 更多