gitgit-reflog

git reflog - branch level summary


git reflog shows how HEAD moved between commits.

Is there a way to show only branches?

(i.e. show only one line per branch visit)


Solution

  • Close enough (includes also tags):

     git reflog -5 --pretty='%d' | uniq