Skip to content

Instantly share code, notes, and snippets.

@jjmontesl
Created May 11, 2018 12:38
Show Gist options
  • Save jjmontesl/62e7ed0669cbc804b4bd8dcbf139ed10 to your computer and use it in GitHub Desktop.
Save jjmontesl/62e7ed0669cbc804b4bd8dcbf139ed10 to your computer and use it in GitHub Desktop.
My .gitconfig
[alias]
ignored = !git ls-files -v | grep "^[[:lower:]]"
ci = commit
st = status .
co = checkout
dc = diff --cached
#lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
mg = merge --no-ff --no-commit
#lg = !"git lg1"
#lg1 = !"git lg1-specific --all"
#lg2 = !"git lg2-specific --all"
#lg3 = !"git lg3-specific --all"
lg1 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(auto)%d%C(reset)'
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(auto)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)'
lg3 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset) %C(bold cyan)(committed: %cD)%C(reset) %C(auto)%d%C(reset)%n'' %C(white)%s%C(reset)%n'' %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'
[core]
excludesfile = ~/.gitignore
[push]
default = simple
[credential]
helper = cache --timeout 64800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment