老大
1 、码云
1.1 创建meituan空仓库 1.2 给本地仓库绑定远程仓库 1.3 推送到码云 git config --global user.name "张三" git config --global user.email "12345678990@163.com" git add . git commit -m 'feat: init2' git push 1.4 基于master创建dev、master保护、dev默认 master ->管理-> 新建分支-> dev -> 提交 -> master保护分支-> dev设置为默认分支-> 1.5 添加开发人员(私有仓库 略)
员工
1、配置全局信息 用户名/邮箱 (目的:后期代码知道是谁push)
git config --global user.name "张三"
git config --global user.email "12345678990@163.com"
2、克隆git clone &&进入仓库目录 cd 项目名
3、创建自己的开发分支 git checkout -b 分支名、git branch -a
4、开发...
5、git push
6、打开码云 点击 pull request按钮 将自己的分支和dev分支合并