1.创建git仓库文件夹:mkdir git-repository
2.cd git-repository
3.克隆git上的项目:git clone git@gitee.com:XiaoYuZi1025/mmall.git
4.执行自动化发布脚本./deploy.sh
,deploy.sh代码如下
echo "===========进入git项目happymmall目录============="
cd /root/developer/git-repository/mmall
echo "==========git切换分之到mmall-v1.0==============="
git checkout v1.0
echo "===========