move GH testing script from top level into connector directory (#5938)
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
|
||||
touch ".gitignore"
|
||||
git add ".gitignore"
|
||||
git commit -m "Initial commit"
|
||||
git push origin master
|
||||
|
||||
for (( i = 0; i < 5; i++ )); do
|
||||
git branch "feature/branch_$i"
|
||||
done
|
||||
|
||||
for (( i = 0; i < 5; i++ )); do
|
||||
git checkout "feature/branch_$i"
|
||||
mkdir github_sources
|
||||
for (( j = 0; j < 5; j++ )); do
|
||||
echo "text_for_file_$j_commit" > "github_sources/file_$j.txt"
|
||||
git add github_sources
|
||||
git commit -m "commit number $j"
|
||||
git push origin "feature/branch_$i"
|
||||
done
|
||||
done
|
||||
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
if git status
|
||||
then
|
||||
echo "Repository already initialized"
|
||||
elif [ ! "$1" ]
|
||||
then
|
||||
echo "No repository url was provided"
|
||||
else
|
||||
git init
|
||||
git remote add origin "$1"
|
||||
echo "Initialized repository $1"
|
||||
fi
|
||||
Reference in New Issue
Block a user