forked from aliaskov/bashscripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGAC_GPOM.sh
More file actions
36 lines (30 loc) · 663 Bytes
/
GAC_GPOM.sh
File metadata and controls
36 lines (30 loc) · 663 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
GITHUBREPO=https://github.com/aliaskov/testrepo.git
REPONAME=/tmp/testrepo
GITHUB_USER=username
GITHUB_PASSWORD=12234
#in case if there is no directory
if [ ! -d $REPONAME ]; then
mkdir $REPONAME
fi
cd $REPONAME
#if git is not initialized
if [ ! -d .git ]; then
git init
git remote add origin $GITHUBREPO
fi
echo "# testrepo" >> README.md
git add .
git commit -m "initial commit"
git push -u origin master
## git push https://$GITHUB_USER:$GITHUB_PASSWORD@myrepository.biz/file.git --all
for run in {1..10}
do
sleep 1
###let's make a dummy commit
date >> README.md
git add .
git commit -m "test commit $run"
git status
done
git push