Created
July 27, 2012 19:45
-
-
Save peppyheppy/3190119 to your computer and use it in GitHub Desktop.
git, bash, zsh, and vim configurations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--type-add=ruby=.haml,.rake,.rsel,.sass,.less,.liquid,.scss,.jsp,.ftl,.coffee,.php,.conf,.hamlc,.yml | |
--type-set=css=.css | |
--nocss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[alias] | |
st = status | |
ci = commit | |
br = branch | |
co = checkout | |
df = diff | |
lg = log -p | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
lola = log --graph --decorate --pretty=oneline --abbrev-commit --all | |
ls = ls-files | |
who = shortlog -s -- | |
k = !gitk | |
x = !gitx | |
alias = !sh -c 'g config --global -l | grep alias | sed s/alias.//g | sort' | |
plr = pull --rebase | |
pl = pull | |
ps = push | |
ss = stash save | |
sp = stash pop | |
ba = branch -a | |
tip = !sh -c 'g log -n 1 | head -n 1' | |
pso = !bash -l -c 'g pl && g ps origin `echo $(__git_ps1 \"%s\") | cut -d\" \" -f1 | cut -d\"=\" -f1 | cut -d\">\" -f1 | cut -d\"<\" -f1`' | |
sb = !bash -l -c 'echo -n $(__git_ps1 \"%s\") | cut -d\" \" -f1 | cut -d\"=\" -f1 | cut -d\">\" -f1 | cut -d\"<\" -f1 > ~/.gitsavedbranch' | |
sbm = !bash -l -c 'g merge `cat ~/.gitsavedbranch`' | |
sbp = !bash -l -c 'cat ~/.gitsavedbranch' | |
m = merge --no-commit --no-ff | |
stag = "!f() { g sb && g pso && g co staging-qa$1 && g pl && g merge `cat ~/.gitsavedbranch` && g pso && g co `cat ~/.gitsavedbranch`; }; f" | |
upstag = "!f() { g co master && g pl && for br in 1 2 3 4; do g co staging-qa${br} && g pl && g merge master; done && g push; }; f" | |
heroku = push heroku master | |
cleanup = !bash -l -c 'source ~/.gitfunctions && branchcleanup' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment