Skip to content

Instantly share code, notes, and snippets.

@peel
Created October 22, 2015 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peel/cd29693a2add4eaeacbc to your computer and use it in GitHub Desktop.
Save peel/cd29693a2add4eaeacbc to your computer and use it in GitHub Desktop.
Mikado Method ZSH aliases for graphing with GIT
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