Skip to content

Instantly share code, notes, and snippets.

@joshskeen
Created January 21, 2014 22:22
Show Gist options
  • Save joshskeen/8549689 to your computer and use it in GitHub Desktop.
Save joshskeen/8549689 to your computer and use it in GitHub Desktop.
get all unique lines containing a given string from history
history | cut -c 8- | grep 'git' | sort | uniq
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment