一键部署脚本提交

master
Chopper 2021-05-24 16:23:49 +08:00
parent 0320b4a9fb
commit 85d3d71bbe
1 changed files with 18 additions and 0 deletions

18
pushGithub.sh Normal file
View File

@ -0,0 +1,18 @@
echo '开始推送github'
echo '切换git地址'
git remote rm origin
git remote add origin git@github.com:hongyehuicheng/docker.git
echo '设置上传代码分支推送github'
git push --set-upstream origin master --force
echo '推送github完成'
git remote rm origin
git remote add origin git@gitee.com:beijing_hongye_huicheng/docker.git
git pull origin master
echo '切回gitee资源'
git branch --set-upstream-to=origin/master master
echo '设置git跟踪资源'