git clone [email protected]:frontend/motooling.git
创建本地分支
git checkout -b feature1
本地提交
git add filepath
git commit -m '完成feature功能'
拉去线上最新代码,合并到 本地 feature1 的分支中
git checkout master
git pull origin master
git ckeckout feature1
git merge master feature1
此时如果没有冲突git已经自动合并提交。如果出现冲突,需要先处理冲突文件,然后
git add filepath
,git commit
推送 feature1 到 gitlab
git push origin feature1
在 gitlab 上提交合并请求(pull request)
git checkout master
git pull origin master
git branch -d feature1
git checkout -b feature2
yarn install
yarn run serve
yarn run build
yarn run test
yarn run lint