Skip to content

Instantly share code, notes, and snippets.

@kyleterry
Created August 23, 2013 21:42
Show Gist options
  • Save kyleterry/6324326 to your computer and use it in GitHub Desktop.
Save kyleterry/6324326 to your computer and use it in GitHub Desktop.
[user]
name = Kyle Terry
email = <REDACTED>
token = <REDACTED>
[github]
user = kyleterry
[color]
diff = True
status = auto
branch = auto
[color "status"]
# good looking colors i copy/pasted from somewhere
added = green bold
changed = yellow bold
untracked = red
[status]
help = false
[push]
default = current
[branch]
# always setup 'git pull' to rebase instead of merge
autosetuprebase = always
[rebase]
stat = True
ui = auto
[core]
editor = vim
pager = less -R
excludesfile = /home/kyle/.gitignore
[alias]
diverges = !bash -c 'diff -u <(git rev-list --first-parent "${1}") <(git rev-list --first-parent "${2:-HEAD}") | sed -ne \"s/^ //p\" | head -1' -
st = status -s
ci = commit
br = branch
co = checkout
df = diff
me = log --author=Kyle Terry
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(cyan)<%an>%Creset' --abbrev-commit --date=relative
up = !sh -c 'git pull --rebase --prune && git log --pretty=format:\"%Cred%ae %Creset- %C(yellow)%s %Creset(%ar)\" HEAD@{1}..'
lol = log --graph --decorate --pretty=oneline --abbrev-commit
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all
ls = ls-files
[help]
autocorrect = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment