Skip to content

Instantly share code, notes, and snippets.

@caseyfw
Last active July 4, 2016 04:20
Show Gist options
  • Save caseyfw/cf3e9fc596faaf9e88ce to your computer and use it in GitHub Desktop.
Save caseyfw/cf3e9fc596faaf9e88ce to your computer and use it in GitHub Desktop.
[color]
filemode = false
diff = auto
status = auto
branch = auto
pager = true
[alias]
b = branch
ci = commit
co = checkout
cob = checkout -b
d = diff
dc = diff --cached
l = log
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
lga = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --branches
st = status
fixup = !sh -c 'git commit -a -m \"fixup! $(git log -1 --format='%s' $@)\"' -
squash = !sh -c 'git commit -a -m \"squash! $(git log -1 --format='%s' $@)\"' -
ri = rebase --interactive
rc = rebase --continue
pr = push gerrit HEAD:refs/for/master
mt = mergetool
[push]
default = simple
[core]
autocrlf = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment