Created
October 22, 2015 11:24
-
-
Save peel/cd29693a2add4eaeacbc to your computer and use it in GitHub Desktop.
Mikado Method ZSH aliases for graphing with GIT
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 checkout develop | |
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