Skip to content

Instantly share code, notes, and snippets.

@fimmtiu
Last active January 19, 2016 19:28
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 fimmtiu/64898a808a81e428392f to your computer and use it in GitHub Desktop.
Save fimmtiu/64898a808a81e428392f to your computer and use it in GitHub Desktop.
fimmtiu's .gitconfig file
[user]
name = Dennis Taylor
email = dennis.taylor@clio.com
[color]
ui = auto
[alias]
s = status
st = stash
co = checkout
cm = commit
d = diff
di = diff --cached
ds = diff --stat
b = branch
f = fetch
m = merge
r = rebase
ra = rebase --abort
rs = rebase --skip
rc = rebase --continue
ri = "!f() { git rebase --interactive head~$1; }; f"
lo = log --oneline
lh = "!f() { git log --oneline --color $1 | head -6; }; f"
cb = rev-parse --symbolic-full-name --abbrev-ref HEAD
cdiff = log --left-right --graph --cherry-pick --oneline
pick = cherry-pick
hist = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue) %an%Creset' --abbrev-commit --date=relative
today = log --all --date=short --since=1.day.ago --no-merges --author=dennis.taylor
up = !"git push --set-upstream dennis `git cb`"
fix = !"git fetch origin && git rebase origin/`git cb` && git push dennis `git cb`"
staging = log --oneline --no-merges master..staging
which = branch -a --contains
setup = "!f() { git branch --set-upstream-to=$1/`git cb` `git cb`; }; f"
[github]
user = fimmtiu
token = blargh
[core]
excludesfile = /Users/dennis/.gitignore_global
[diff]
renames = copies
[merge]
stat = true
[push]
default = current
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment