-
-
Save jbenesch/1c3a16a36d1ee4c9b87e to your computer and use it in GitHub Desktop.
This file contains 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 | |
co = checkout | |
cob = checkout -b | |
cp = cherry-pick | |
up = add -up | |
c = commit -m | |
lg = log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset - %an (%ae)' --abbrev-commit --date=relative | |
todo = grep --heading --break --ignore-case -e 'TODO:' | |
fix = grep --heading --break --ignore-case -e 'FIX:' -e 'FIXME:' | |
conflicts = !git ls-files -u | cut -f 2 | sort -u | |
poh = push origin HEAD | |
cleanup = !git branch --merged | grep -v \"\\*\" | xargs -n 1 git branch -d | |
sync = !git remote prune origin && git cleanup | |
clear = !git clean -Xffde .vagrant | |
subpull = !git all \"git currentH && git pull origin $B\" | |
currentH = !B=`git rev-parse --abbrev-ref HEAD` | |
subup = !git all \"gulp || grunt\" | |
subfetch = !git all \"git fetch\" | |
subwatch = !git all \"gulp watch || grunt watch &\" | |
subclear = !git all \"git reset HEAD --hard\" | |
subco = !git all \"git co $1 || true\" | |
submerge = !git all \"git merge origin/$1\" | |
substash = !git all \"git stash\" | |
subpop = !get all \"git stash pop\" | |
sub = !git subfetch && git subco $1 && git substash && git submerge $1 && git subup | |
all = !git submodule foreach /bin/bash -c \"$1\" | |
prhub = !hub pull-request -m $3 -b $1 -h $2 | |
pr = !git all \"hub pull-request -m \\"$3\\" -b $1 -h $2\" | |
set-issue = !echo > ~/.current-issue | |
oi = !cat ~/.current-issue | |
on-issue = !onIssue=$(git oi) && echo "Currently on issue $onIssue" | |
coi = !git co $(git oi) | |
merge-issue = !onIssue=$(git oi) && git co $onIssue && git branch -D "CI-$onIssue" && git cob "CI-$onIssue" && git merge $1 | |
start-issue = !git co master && git pull origin master && git set-issue $1 && git cob $(git oi) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment