Skip to content

Instantly share code, notes, and snippets.

@perfectfoolish
Created November 25, 2014 14:46
Show Gist options
  • Save perfectfoolish/9bbf3a05fee2354175e9 to your computer and use it in GitHub Desktop.
Save perfectfoolish/9bbf3a05fee2354175e9 to your computer and use it in GitHub Desktop.
[alias]
unstage = reset HEAD
throw = reset --hard HEAD
throwh = reset --hard HEAD^
st = status
ci = commit -v
co = checkout
br = branch
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[color]
ui = true
[core]
editor = vim
excludesfile = /Users/lifulei/.gitignore_global
[difftool "sourcetree"]
cmd = opendiff \"$LOCAL\" \"$REMOTE\"
path =
[mergetool "sourcetree"]
cmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \"$LOCAL\" \"$REMOTE\" -ancestor \"$BASE\" -merge \"$MERGED\"
trustExitCode = true
[user]
name = perfectfoolish
email = [email protected]
[push]
default = simple
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment