Skip to content

Instantly share code, notes, and snippets.

@cbadke
Last active May 19, 2017 14:12
Show Gist options
  • Save cbadke/790c8e93e4bc200cdca7 to your computer and use it in GitHub Desktop.
Save cbadke/790c8e93e4bc200cdca7 to your computer and use it in GitHub Desktop.
[user]
name = Curtis Badke
email = curtis@badkid.ca
[diff]
renames = true
[mergetool]
keepBackup = false
[log]
date = relative
[color]
ui = auto
[alias]
st = status
s = status
ci = commit
co = checkout
di = diff
dc = diff --cached
amend = commit --amend
aa = add --all .
ff = merge --ff-only
pullff = pull --ff-only
noff = merge --no-ff
fa = fetch --all --prune
pom = push origin master
b = branch
ds = diff --stat=160,120
dh1 = diff HEAD~1
rbi = rebase -i
rbc = rebase --continue
rba = rebase --abort
rbfix = "!git diff --name-only | select-object -unique | % { vim $_; git add $_ }"
lg = log --graph --topo-order -C -M --pretty=format:\"<%Cred%h%Creset> %ad [%C(yellow)%an%Creset] %Cgreen%d%Creset %s\" --all --date=short
new = log origin/master.. --reverse -C -M --pretty=format:\"<%Cred%h%Creset> %ad [%C(yellow)%an%Creset] %Cgreen%d%Creset %s\" --all --date=short
scrub = !git clean -xfd && git reset --hard
dt = difftool
prno = remote prune origin
cm = commit -m
[merge]
tool = vimdiff
[core]
editor = vim
pager = diff-so-fancy | less --tabs=4 -RFX
[pull]
rebase = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment