Quickies

[categories] [index] [all (527)] [latest]

Git
  1. Add an alias to display pretty logs

    $ git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
    

    Display pretty logs

    $ git lg
    

    Display the lines that changed

    $ git lg -p
    

    Source: http://coderwall.com/p/euwpig?i=3&p=1&t=git