Created
October 22, 2015 11:21
-
-
Save peel/994c9ede9905d17941d6 to your computer and use it in GitHub Desktop.
mikado method ZSH aliases
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
function zengoal(){ | |
goal=${$1// /} | |
git checkout f-do-$goal | |
} | |
function zenexperiment(){ | |
branch=eval $(git branch | sed -n '/\* /s///p') | |
task=${$1// /} | |
git checkout -b $branch-$task | |
} | |
function zenrollback(){ | |
git commit -m 'rolling back...' | |
} | |
function zenimplement(){ | |
git log --graph --all --topo-order --decorate --oneline --boundary --simplify-by-decoration --since="1 day ago" | |
git branch -D `git branch | grep -E `f-do-.*` | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment