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.
我知道压缩版本reflog存储在 .git/packed-refs 但实际 reflog 的位置以及当一种类型时 git 如何恢复历史记录git reflog?
reflog
.git/packed-refs
git reflog
reflogs 在.git/logs/<refname>. 例如,对于一个名为master(eg, refs/heads/master) 的分支,您需要.git/logs/refs/heads/master.
.git/logs/<refname>
master
refs/heads/master
.git/logs/refs/heads/master
HEAD,当然,是异常的,并且是.git/logs/HEAD。
HEAD
.git/logs/HEAD