Add 'Script for pushing'
parent
d0a224623a
commit
f049459d1d
1 changed files with 19 additions and 0 deletions
19
Script-for-pushing.md
Normal file
19
Script-for-pushing.md
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
```sh
|
||||||
|
for submission in 12post5.*; do
|
||||||
|
cd $submission
|
||||||
|
|
||||||
|
BRANCH_NAME=$(pwd | cut -d'/' -f6)
|
||||||
|
LOGIN=$(echo $BRANCH_NAME | cut -d'.' -f3)
|
||||||
|
echo $BRANCH_NAME $LOGIN
|
||||||
|
|
||||||
|
git checkout -b "$BRANCH_NAME"
|
||||||
|
|
||||||
|
git add .
|
||||||
|
git commit -S -m "08post3($LOGIN): add solution"
|
||||||
|
|
||||||
|
git push -u origin
|
||||||
|
git checkout main
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
done;
|
||||||
|
```
|
Loading…
Reference in a new issue