Skip to content

Instantly share code, notes, and snippets.

@JonTheNiceGuy
Created October 20, 2015 21:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonTheNiceGuy/3880e91564ea6f44ef1a to your computer and use it in GitHub Desktop.
Save JonTheNiceGuy/3880e91564ea6f44ef1a to your computer and use it in GitHub Desktop.
Find a commit which references a piece of text (I use this in https://github.com/garethr/vagrantboxes-heroku)
#!/bin/bash
git log -S"$1" -- www/index.html | grep commit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment