输出脚本进程
This commit is contained in:
parent
f12d0d1be0
commit
903cf0b28a
@ -1,15 +1,17 @@
|
|||||||
|
echo '开始推送github'
|
||||||
|
echo '切换git地址'
|
||||||
git remote rm origin
|
git remote rm origin
|
||||||
|
|
||||||
git remote add origin git@github.com:hongyehuicheng/lilishop.git
|
git remote add origin git@github.com:hongyehuicheng/lilishop.git
|
||||||
|
echo '设置上传代码分支,推送github'
|
||||||
git push --set-upstream origin master
|
git push --set-upstream origin master
|
||||||
|
echo '推送github完成'
|
||||||
git remote rm origin
|
git remote rm origin
|
||||||
|
|
||||||
git remote add origin git@gitee.com:beijing_hongye_huicheng/lilishop.git
|
git remote add origin git@gitee.com:beijing_hongye_huicheng/lilishop.git
|
||||||
|
echo '切回gitee资源'
|
||||||
sleep 1
|
|
||||||
|
|
||||||
git branch --set-upstream-to=origin/master master
|
git branch --set-upstream-to=origin/master master
|
||||||
|
echo '设置git跟踪资源'
|
||||||
|
sleep 1
|
||||||
|
echo '更新代码'
|
||||||
git pull
|
git pull
|
||||||
|
Loading…
x
Reference in New Issue
Block a user