Skip to content

Instantly share code, notes, and snippets.

@juanj032
Created August 26, 2014 18:39
Show Gist options
  • Select an option

  • Save juanj032/b7ed19a4907549ecee6b to your computer and use it in GitHub Desktop.

Select an option

Save juanj032/b7ed19a4907549ecee6b to your computer and use it in GitHub Desktop.

Revisions

  1. juanj032 created this gist Aug 26, 2014.
    8 changes: 8 additions & 0 deletions git-log
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    # log with pretty format
    git config --global alias.ls 'log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate'

    # log with pretty format and changed files
    git config --global alias.ll 'log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat'

    # log with pretty format and graph timeline
    git config --global alias.lol 'log --pretty=oneline --abbrev-commit --graph --decorat' # log with pretty format and graph timeline