git分支的使用
- 在码云打开项目点击分支,新建分支
- 在本地把分支拿过来,在终端运行,git pull
- 切换到分支上进行开发,git checkout index-icons (index-icons是你新建的分支名)
- 代码打完后再上传
- git add .
- git commit -m 'change' (change是描述,随便)
- git push (本地分支提交到网上分支)
- git checkout master (合并提交到master,先切到master分支)
- git merge origin/index-icons (把线上的inde-icons合并到本地master的内容)
- git push (再把本地的内容提交到线上)
参考网站:https://www.imooc.com/learn/1278

浙公网安备 33010602011771号