Skip to content

Instantly share code, notes, and snippets.

@auscompgeek
Last active October 28, 2015 12:28
Show Gist options
  • Save auscompgeek/f3f60822062b6893ca3e to your computer and use it in GitHub Desktop.
Save auscompgeek/f3f60822062b6893ca3e to your computer and use it in GitHub Desktop.
[core]
# git default is 7
# kernel devs like 12
abbrev = 10
[alias]
lg = log --graph --pretty=format:'%C(auto)%h%d %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
id = rev-parse --verify HEAD
br = branch -v
ci = commit -v
cl = clone --recursive
co = checkout
ff = merge --ff-only
mm = merge --no-ff
rb = rebase
st = status -sb
upd = pull --rebase
amend = commit --amend
unstage = reset HEAD --
tags = tag -l
remotes = remote -v
[push]
default = simple
followTags = true
[diff]
context = 5
mnemonicPrefix
renames = copy
[rebase]
stat
[merge]
log = true
tool = vimdiff
[apply]
whitespace = fix
# Make untracked files distinguishable from updated files in status -s.
[color "status"]
untracked = cyan
# Always use the correct(tm) protocols.
[url "gh:"]
pushInsteadOf = https://github.com/
[url "gist:"]
pushInsteadOf = https://gist.github.com/
[url "https://github.com/"]
insteadOf = git://github.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment