I know that compressed version of reflog
is stored in .git/packed-refs
but where is actual reflog is located and how git restores history when one types git reflog
?
The reflogs are in .git/logs/<refname>
. For example, for a branch named master
(eg, refs/heads/master
) then you would want .git/logs/refs/heads/master
.
HEAD
, of course, is anomalous, and is .git/logs/HEAD
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With