Skip to content

Instantly share code, notes, and snippets.

@jbarone
Last active February 28, 2016 02:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbarone/6901000 to your computer and use it in GitHub Desktop.
Save jbarone/6901000 to your computer and use it in GitHub Desktop.
[core]
autocrlf = false
safecrlf = true
pager = diff-highlight | less
[alias]
co = checkout
ci = commit
st = status -sb
br = branch
hist = log --pretty=format:\"%h %ad | %s [%an]\" --graph --date=short
type = cat-file -t
dump = cat-file -p
ds = diff --staged
dr = "!f() { git remote update; git log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short $1..origin/$1; }; f"
amend = commit --amend -C HEAD
undo = reset --soft HEAD^
ls = log --pretty=format:\"%C(yellow)%h %C(blue)%ad%C(red)%d %C(reset)%s%C(green) [%cn]\" --decorate --date=short
standup = log --since '1 day ago' --oneline --author joshua.barone@geocent.com
graph = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
[merge]
tool = gvimdiff
[push]
default = matching
[color]
ui = always
[color "diff"]
commit = green
meta = yellow
frag = cyan
old = red
new = green
whitespace = red reverse
[color "diff-highlight"]
oldNormal = red bold
oldHighlight = red bold 52
newNormal = green bold
newHighlight = green bold 22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment