Skip to content

Instantly share code, notes, and snippets.

@DanielFGray
Last active September 18, 2017 19:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DanielFGray/9bad3f7a8b3f782acabcfa54edb8e5f5 to your computer and use it in GitHub Desktop.
Save DanielFGray/9bad3f7a8b3f782acabcfa54edb8e5f5 to your computer and use it in GitHub Desktop.
fancy git-log stuff
git log --graph --oneline --decorate --all --color=always |
fzf --ansi +s --preview='git show --color=always {2}' \
--bind='pgdn:preview-page-down' \
--bind='pgup:preview-page-up' \
--bind='enter:execute:git show --color=always {2} | less -R' \
--bind='ctrl-x:execute:git checkout {2} .'
@DanielFGray
Copy link
Author

more of this hackery can be found in my fzf-script repos, in particular the fzgit script

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment