2021-05-24 15:46:32 +08:00
|
|
|
|
echo '开始推送github'
|
|
|
|
|
echo '切换git地址'
|
|
|
|
|
git remote rm origin
|
|
|
|
|
|
|
|
|
|
git remote add origin git@github.com:hongyehuicheng/lilishop-ui.git
|
|
|
|
|
echo '设置上传代码分支,推送github'
|
2021-05-24 15:47:27 +08:00
|
|
|
|
git push --set-upstream origin master --force
|
2021-05-24 15:46:32 +08:00
|
|
|
|
echo '推送github完成'
|
|
|
|
|
git remote rm origin
|
|
|
|
|
|
|
|
|
|
git remote add origin git@gitee.com:beijing_hongye_huicheng/lilishop-ui.git
|
|
|
|
|
|
|
|
|
|
git pull origin master
|
|
|
|
|
|
|
|
|
|
echo '切回gitee资源'
|
|
|
|
|
git branch --set-upstream-to=origin/master master
|
|
|
|
|
echo '设置git跟踪资源'
|
|
|
|
|
|