2014-04-27 19:19:17 -04:00
|
|
|
#!/bin/bash
|
|
|
|
green='\e[0;32m'
|
|
|
|
close='\e[0m'
|
|
|
|
mkdir -p /tmp/tests
|
|
|
|
echo -e "${green}Making test directories${close}"
|
|
|
|
cd /tmp/tests
|
|
|
|
git init
|
2014-09-23 18:10:30 -04:00
|
|
|
git remote add iHttp 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 https://austenwares.com/gitlab/stonewareslord/ExampleProject.git
|
|
|
|
git remote add dSsh git@austenwares.com:stonewareslord/ExampleProject.git
|
2014-04-27 19:19:17 -04:00
|
|
|
git config http.sslVerify false
|
2014-09-23 18:10:30 -04:00
|
|
|
echo -e "${green}IP HTTPS cloning${close}"
|
|
|
|
git pull iHttp master
|
|
|
|
echo -e "${green}DNS HTTPS 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}"
|
|
|
|
mv `tempfile` .&&git add .&&git commit -m "message"&&git push iHttp master
|
|
|
|
echo -e "${green}DNS HTTPS pushing${close}"
|
|
|
|
mv `tempfile` .&&git add .&&git commit -m "message"&&git push dHttp master
|
|
|
|
echo -e "${green}IP SSH pushing${close}"
|
|
|
|
mv `tempfile` .&&git add .&&git commit -m "message"&&git push iSsh master
|
|
|
|
echo -e "${green}DNS SSH pushing${close}"
|
|
|
|
mv `tempfile` .&&git add .&&git commit -m "message"&&git push dSsh master
|
2014-04-27 19:20:35 -04:00
|
|
|
rm -rf /tmp/tests
|