Skip to content

Instantly share code, notes, and snippets.

@mjtorn
Last active January 14, 2016 16:26
Show Gist options
  • Save mjtorn/1f28b7fb3dc29368cd9d to your computer and use it in GitHub Desktop.
Save mjtorn/1f28b7fb3dc29368cd9d to your computer and use it in GitHub Desktop.
~/.gitconfig
[alias]
lg = log --graph --pretty=format:\"%Cred%h%Creset – %s %Cgreen(%cr)%Creset\" --abbrev-commit --date=relative
vomit = commit
grepn = grep -n
stat = status --untracked-files=no
history = log --reverse
hist = log --reverse
chist = log --reverse --color -U3
clog = log --color -U3
flog = log --numstat
rpull = pull --rebase
[branch]
autosetuprebase = always
[diff]
renames = copies
[fetch]
prune = true
[pull]
rebase = preserve
[push]
default = tracking
[rebase]
autosquash = true
autostash = true
[rerere]
enabled = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment