Skip to content

Instantly share code, notes, and snippets.

@noahsark769
Created January 6, 2017 20:41
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 noahsark769/b09be124692594d60c262498580de006 to your computer and use it in GitHub Desktop.
Save noahsark769/b09be124692594d60c262498580de006 to your computer and use it in GitHub Desktop.
Get history of line in file from git
# Usage: blameline <filename> <line number>
function blameline {
cmd="git log -u -L $2,$2:$1"
echo $cmd
$cmd
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment