Skip to content

Instantly share code, notes, and snippets.

@rdammkoehler
Last active June 8, 2018 15:08
Show Gist options
  • Save rdammkoehler/1313743 to your computer and use it in GitHub Desktop.
Save rdammkoehler/1313743 to your computer and use it in GitHub Desktop.
My .gitconfig
[user]
name = Rich Dammkoehler
email = rpd@noradltd.com
[color]
branch = auto
diff = auto
status = auto
showbranch = auto
[alias]
b = branch
bs = !git bisect
c = commit -am
co = checkout
fu = fetch upstream
g = grep
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
lag = log --all --graph --decorate
lg = log --graph --pretty=format:'%Cred%h%Creset %C(cyan)%an%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
ln = log --no-merges
ll = log --oneline --graph --decorate --all
mf = merge --ff-only
mn = merge --no-ff
ms = merge --squash
p = pull
po = push origin
ph = push heroku
pr = pull --rebase
pu = push upstream
rp = rebase -p
rum = rebase upstream/master
sm = !git submodule
ss = status --short
st = status
wc = whatchanged
wtf = blame -w -c
[core]
autocrlf = input
safecrlf = true
excludesfile = /home/rich/.gitignore
[diff]
noprefix = true
[push]
default = current
[filter "lfs"]
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment