Skip to content

Instantly share code, notes, and snippets.

@jwhett
Created August 28, 2018 13:48
Show Gist options
  • Save jwhett/a1b91ad47ff83f1881518523723e6a9f to your computer and use it in GitHub Desktop.
Save jwhett/a1b91ad47ff83f1881518523723e6a9f to your computer and use it in GitHub Desktop.
Git Config
[alias]
last = log -1 HEAD
st = status -s
co = checkout
br = branch --color=always --list -v --abbrev=8
#lg = log --decorate=short --pretty=oneline --abbrev-commit --graph --color
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(bold yellow)%d%C(reset)' --all
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(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lg = !"git lg1"
vis = !gitk
[user]
name = Josh Whetton
email =
signingkey =
[core]
editor = vim
[diff]
tool = vimdiff
[push]
default = simple
[gpg]
program = /usr/bin/gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment