File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ REPOSITORY_DIR=~ /jwp-workspace/cherry-pick/jwp-basic
4+
5+ BRANCHES=(" step0-getting-started" " step1-user-completed-no-database" " step2-user-with-mvc-framework" " step3-user-completed-database" " step4-qna-getting-started" " step5-qna-with-ajax" " step6-qna-with-mvc-framework" " step7-self-check" " step8-self-check-completed" " step9-mvc-framework-completed" " step10-di-getting-started" " step11-1st-di-framework" " step12-2nd-di-framework" " step13-3rd-di-framework" " step14-di-framework-completed" " step15-spring-orm-framework" )
6+ COMMIT_REVISION=a33b298
7+
8+ rm -rf $REPOSITORY_DIR
9+
10+ git clone https://github.com/slipp/jwp-basic.git
11+
12+ cd $REPOSITORY_DIR
13+ pwd
14+
15+ for BRANCH_NAME in " ${BRANCHES[@]} " ; do
16+ git cherry-pick --quit
17+ echo $BRANCH_NAME
18+ git checkout -b $BRANCH_NAME origin/$BRANCH_NAME
19+ git cherry-pick $COMMIT_REVISION
20+ git push origin $BRANCH_NAME
21+ done
22+
23+ echo " Finished."
You can’t perform that action at this time.
0 commit comments