Skip to content

Commit 5250691

Browse files
committed
cherry pick을 진행하는 파일 추가함.
1 parent 9cad2dd commit 5250691

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

sync_branch.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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."

0 commit comments

Comments
 (0)