1
0
mirror of synced 2025-12-25 02:09:19 -05:00

move GH testing script from top level into connector directory (#5938)

This commit is contained in:
Sherif A. Nada
2021-09-09 07:40:24 -07:00
committed by GitHub
parent a288641dbf
commit 8179992c75
7 changed files with 0 additions and 0 deletions

View File

@@ -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

View File

@@ -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