dev_caojiahao/pushGithub.sh
2022-02-11 19:30:50 +08:00

19 lines
474 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

echo '开始推送github'
echo '切换git地址'
git remote rm origin
git remote add origin git@github.com:lilishop/lilishop.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.git
git pull origin master
echo '切回gitee资源'
git branch --set-upstream-to=origin/master master
echo '设置git跟踪资源'