From 903cf0b28a592e37dc0a506a2280d662ea2a2570 Mon Sep 17 00:00:00 2001 From: Chopper Date: Mon, 24 May 2021 15:32:20 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BE=93=E5=87=BA=E8=84=9A=E6=9C=AC=E8=BF=9B?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pushGithub.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pushGithub.sh b/pushGithub.sh index 2c82f335..7f6c27e6 100644 --- a/pushGithub.sh +++ b/pushGithub.sh @@ -1,15 +1,17 @@ +echo '开始推送github' +echo '切换git地址' git remote rm origin git remote add origin git@github.com:hongyehuicheng/lilishop.git - +echo '设置上传代码分支,推送github' git push --set-upstream origin master - +echo '推送github完成' git remote rm origin git remote add origin git@gitee.com:beijing_hongye_huicheng/lilishop.git - -sleep 1 - +echo '切回gitee资源' git branch --set-upstream-to=origin/master master - +echo '设置git跟踪资源' +sleep 1 +echo '更新代码' git pull