Skip to content

Instantly share code, notes, and snippets.

@ajvargo
Created September 4, 2013 20:49
Show Gist options
  • Save ajvargo/6442681 to your computer and use it in GitHub Desktop.
Save ajvargo/6442681 to your computer and use it in GitHub Desktop.
Work git config
[user]
name = Andrew J Vargo
email = [email protected]
[alias]
co = checkout
w = whatchanged
br = branch
lo = log --oneline --decorate
ss = status -sb
last = log -n 1
undo = reset --soft HEAD^
count = shortlog -sn
lg = log --grep
pr = pull --rebase
lg = log --graph --pretty=format:'%Cred%h%Creset %C(yellow)%an%d%Creset %s %Cgreen(%cr)%Creset' --date=relative
whitespace = nowarn
assume = update-index --assume-unchanged
unassume = update-index --no-assume-unchanged
assumed = "!git ls-files -v | grep ^h | cut -c 3-"
lt = "!git describe --tags `git rev-list --tags --max-count=1`"
colt = "!git checkout `git lt`"
[color]
ui = true
[color "branch"]
current = yellow reverse
local = yellow
remote = green
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = yellow
changed = green
untracked = cyan
[core]
excludesfile = /Users/avargo/.gitignore
editor = emacs
[branch]
autosetuprebase = always
[push]
default = tracking
[rerere]
enabled = 1
[advice]
detachedHead = false
[commit]
status = false
[grep]
lineNumber = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment