Skip to content

Instantly share code, notes, and snippets.

@rschiang
Created September 11, 2015 03:36
Show Gist options
  • Save rschiang/d111643741e3158da322 to your computer and use it in GitHub Desktop.
Save rschiang/d111643741e3158da322 to your computer and use it in GitHub Desktop.
Git config witchcrafts
[user]
name = Poren Chiang
email = <EMAIL>
[color]
ui = true
[alias]
tree = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
keepup = !git checkout $2 && git merge $1 && git push && git push origin $2 && git checkout $1 && echo
on = commit -m
themall = commit -a -m
amendall = commit -a --amend
github = "!git remote -v | python -c 'import sys, re; print re.search(r\"((https|git):[A-Za-z0-9\\.\\-_/]+)\\.git\", sys.stdin.readline()).group(1)' | xargs open"
[push]
default = simple
[core]
editor = nano
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[github]
user = rschiang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment