Toggle navigation
Toggle navigation
This project
Loading...
Sign in
yohoops
/
auto_deploy_test
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
5
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
chunhua.zhang
2017-07-27 18:50:36 +0800
Commit
894bd9df41acebb42fc0b2d5d43cc790de868b56
1 parent
ff0cf75f
auto push by shell
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
0 deletions
autoconfig/test_performance/gitPull.sh
autoconfig/test_performance/gitPush.sh
autoconfig/test_performance/gitPull.sh
0 → 100755
View file @
894bd9d
USER
=
$(
whoami
)
if
[[
"
$USER
"
!
=
"test"
]]
;
then
echo
"ERROR:需切换到test用户!"
exit
1
fi
if
[[
$1
]]
;
then
cd
$1
git reset --hard origin/master
git pull;
else
echo
"未输入路径"
fi
...
...
autoconfig/test_performance/gitPush.sh
0 → 100755
View file @
894bd9d
#!/bin/bash
USER
=
$(
whoami
)
if
[[
"
$USER
"
!
=
"test"
]]
;
then
echo
"ERROR:需切换到test用户!"
exit
1
fi
if
[[
$1
]]
;
then
cd
$1
git add .
git commit -m
"auto push by shell"
git push
else
echo
"未输入路径"
fi
...
...
Please
register
or
login
to post a comment