git命令
1.码云上默认主分支 为master,创建新分支 index-icons
2.打开终端,cd进入项目目录,将index-icons分支拉到本地
git pull
3.切换到新建分支进行开发
git checkout index-icons
4.开发完成后,cd进入项目目录,运行命令
git add .
git commit -m “新增icons组件”
git push
5.切换到master分支
git checkout master
6.代码合并
git merge origin/index-icons
7.合并完成后推送到线上仓库
git push