Skip to content

Instantly share code, notes, and snippets.

@fukajun
Last active February 19, 2017 14:28
Show Gist options
  • Save fukajun/edea3c4f36e37bf36e8b to your computer and use it in GitHub Desktop.
Save fukajun/edea3c4f36e37bf36e8b to your computer and use it in GitHub Desktop.
pecoでgit logから指定したコミットのハッシュを取るコマンド
git log --graph --pretty=format:'%d %an: %s %ar %h' | peco | awk -F ' ' '{ print $NF }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment