From 6c320c8763f3a2621ab45e5b6ffbed7732cf2dd5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Thu, 26 Sep 2024 22:21:03 +0200 Subject: [PATCH] add cviko 2_2 --- Cviko2_2/README.md | 51 ---------------------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 Cviko2_2/README.md diff --git a/Cviko2_2/README.md b/Cviko2_2/README.md deleted file mode 100644 index 23c9474..0000000 --- a/Cviko2_2/README.md +++ /dev/null @@ -1,51 +0,0 @@ -# Replit Template - -**Branch switching** -``` -git switch "branch_name" -git submodule update --init -``` - -**Submodule updates** -``` -git submodule update --init --remote -git checkout main -- README.md student-config.sh .tests/.gitignore .tests/config.sh .tests/README.md -p -``` - -## Creating new branches -``` -BRANCH="branch_name" -git branch -c main "$BRANCH" -git submodule set-branch --branch "$BRANCH" solution -``` - -## Propagating changes from master -``` -git fetch -for BRANCH in $(git branch -r | grep -E -o "\d{2}-\d{2}-.*"); -do - echo "\nRebase $BRANCH" - read - git branch -D $BRANCH - git checkout $BRANCH || break - git reset --hard origin/"$BRANCH" || break - git rebase master || break - git push --force || break -done -``` - -## Propagating changes of scripts -``` -git fetch -for BRANCH in $(git branch -r | grep -E -o "\d{2}-\d{2}-.*"); -do - echo "\nSync test scripts on $BRANCH" - read - git branch -D $BRANCH - git checkout $BRANCH || break - git submodule update --remote .tests/scripts || break - git add .tests/scripts || break - git commit -m "feat: sync latest test scripts" || break - git push || break -done -```