41 lines
1.6 KiB
Bash
Executable File
41 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
green='\e[0;32m'
|
|
close='\e[0m'
|
|
rm -rf /tmp/tests
|
|
mkdir -p /tmp/tests
|
|
echo -e "${green}Making test directories${close}"
|
|
cd /tmp/tests
|
|
git init
|
|
git remote add iHttp http://98.26.78.121/gitlab/stonewareslord/ExampleProject.git
|
|
git remote add iHttps https://98.26.78.121/gitlab/stonewareslord/ExampleProject.git
|
|
git remote add iSsh git@98.26.78.121:stonewareslord/ExampleProject.git
|
|
git remote add dHttp http://austenwares.com/gitlab/stonewareslord/ExampleProject.git
|
|
git remote add dHttps https://austenwares.com/gitlab/stonewareslord/ExampleProject.git
|
|
git remote add dSsh git@austenwares.com:stonewareslord/ExampleProject.git
|
|
git config http.sslVerify false
|
|
echo -e "${green}IP HTTPS cloning${close}"
|
|
git pull iHttps master
|
|
echo -e "${green}DNS HTTPS cloning${close}"
|
|
git pull dHttps master
|
|
echo -e "${green}IP HTTP cloning${close}"
|
|
git pull iHttp master
|
|
echo -e "${green}DNS HTTP cloning${close}"
|
|
git pull dHttp master
|
|
echo -e "${green}IP SSH cloning${close}"
|
|
git pull iSsh master
|
|
echo -e "${green}DNS SSH cloning${close}"
|
|
git pull dSsh master
|
|
echo -e "${green}IP HTTPS pushing${close}"
|
|
git commit --allow-empty -m "iHttps"&&git push iHttps master
|
|
echo -e "${green}DNS HTTPS pushing${close}"
|
|
git commit --allow-empty -m "dHttps"&&git push dHttps master
|
|
echo -e "${green}IP HTTP pushing${close}"
|
|
git commit --allow-empty -m "iHttp"&&git push iHttp master
|
|
echo -e "${green}DNS HTTP pushing${close}"
|
|
git commit --allow-empty -m "dHttp"&&git push dHttp master
|
|
echo -e "${green}IP SSH pushing${close}"
|
|
git commit --allow-empty -m "iSsh"&&git push iSsh master
|
|
echo -e "${green}DNS SSH pushing${close}"
|
|
git commit --allow-empty -m "dSsh"&&git push dSsh master
|
|
rm -rf /tmp/tests
|