Skip to content

Instantly share code, notes, and snippets.

@yusufnb
Created December 27, 2018 18:29
Show Gist options
  • Save yusufnb/54dde9965db65e309c78eb3deaa40f2c to your computer and use it in GitHub Desktop.
Save yusufnb/54dde9965db65e309c78eb3deaa40f2c to your computer and use it in GitHub Desktop.

Revisions

  1. yusufnb created this gist Dec 27, 2018.
    5 changes: 5 additions & 0 deletions git-file-logs.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # usage: gl <file path>
    gl()
    {
    git log --follow --date=short --pretty=format:"%h%x09%an%x09%ad%x09%s" -- $1 | sed '1!G;h;$!d'
    }