From 1de09902653577f517d921e3a3f324f21eb01eb6 Mon Sep 17 00:00:00 2001 From: Chopper Date: Mon, 24 May 2021 15:52:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=80=E9=94=AE=E6=8E=A8=E9=80=81github=20?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=201.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pushGithub.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pushGithub.sh diff --git a/pushGithub.sh b/pushGithub.sh new file mode 100644 index 0000000..79f5a6c --- /dev/null +++ b/pushGithub.sh @@ -0,0 +1,18 @@ +echo '开始推送github' +echo '切换git地址' +git remote rm origin + +git remote add origin git@github.com:hongyehuicheng/lilishop-uniapp.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/lilishop-uniapp.git + +git pull origin master + +echo '切回gitee资源' +git branch --set-upstream-to=origin/master master +echo '设置git跟踪资源' +