What should "git reflog show <ref>" show? -


i have 2 branches, master , b1. when i'm on b1, 'git reflog show' displays changes b1. however, after switch master , run 'git reflog show b1', displays different. manpage 'git reflog' not explain how arg, <ref>, affects output.

it shows history of <ref>. if <ref> not provided, shows history of head. note not head points to, rather head itself. when git reflog show while on b1, showing history of head, not b1. when git reflog show b1, shows history of b1. difference comes from.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -