Skip to content

Instantly share code, notes, and snippets.

@scottcheng
Created October 5, 2015 01:11
Show Gist options
  • Save scottcheng/59df8396a24c017b5424 to your computer and use it in GitHub Desktop.
Save scottcheng/59df8396a24c017b5424 to your computer and use it in GitHub Desktop.
.gitconfig
[user]
name = Scott Cheng
email = me@scottcheng.com
[color]
ui = true
[color "diff"]
meta = yellow bold
frag = magenta bold
old = red bold
new = green bold
[color "status"]
added = green
changed = cyan
untracked = magenta
[push]
default = current
[alias]
ci = commit
ca = commit --amend
st = status
br = branch
co = checkout
df = diff
ds = diff --staged
up = !git remote update -p; git merge --ff-only @{u}
unstage = reset HEAD
l = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
today = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --since=12am
clone-d1 = clone --depth=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment