Skip to content

Instantly share code, notes, and snippets.

@dfevre
Last active May 19, 2017 06:45

Revisions

  1. dfevre revised this gist May 19, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gitaliases
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
    git config --global alias.lg "log --graph --pretty=format:'%C(bold blue)%h%C(reset) -%C(auto)%d%Creset %C(white)%s%C(reset) %Cgreen(%cr) %C(dim white)%an%Creset' --abbrev-commit --date=relative"

    # this one sets Notepad++ as the git editor on Windows. Requires the npp.sh file from https://gist.github.com/3735365#file_npp.sh
    git config --global core.editor ~/npp.sh
  2. David Fevre revised this gist Dec 9, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gitaliases
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"

    # this one requires the npp.sh file from https://gist.github.com/3735365#file_npp.sh
    # this one sets Notepad++ as the git editor on Windows. Requires the npp.sh file from https://gist.github.com/3735365#file_npp.sh
    git config --global core.editor ~/npp.sh
  3. David Fevre revised this gist Oct 15, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gitaliases
    Original file line number Diff line number Diff line change
    @@ -1 +1,4 @@
    git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
    git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"

    # this one requires the npp.sh file from https://gist.github.com/3735365#file_npp.sh
    git config --global core.editor ~/npp.sh
  4. David Fevre revised this gist Oct 15, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gitaliases
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    alias.lg=log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --remotes
    git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
  5. David Fevre created this gist Sep 17, 2012.
    1 change: 1 addition & 0 deletions gitaliases
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    alias.lg=log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --remotes