Skip to content

Instantly share code, notes, and snippets.

@francisrstokes
Created July 3, 2025 14:08
Show Gist options
  • Save francisrstokes/ce517faacb75a241511f60c1f4d6a2dc to your computer and use it in GitHub Desktop.
Save francisrstokes/ce517faacb75a241511f60c1f4d6a2dc to your computer and use it in GitHub Desktop.
Interactive reflog explorer using fzf that shows the contents of each commit in the preview pane
#!/bin/bash
git reflog --color=always | fzf \
--ansi \
--preview "git show --color=always -p {1}" \
--accept-nth 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment