pull request配置
在托管代码平台上,提pull request请求(以gitee)为例
在项目目录下完成合并
合并演示:test ——> main
切换到test分支
git switch test
拉取test最新代码
git pull
合并main分支代码到test
git merge main
#提示
Auto-merging src/test.js
CONFLICT (content): Merge conflict in src/test.js
Automatic merge failed; fix conflicts and then commit the result.
修改冲突文件
省略
冲突文件加入暂存
git add .
提交冲突文件
git commit -m '第二次解决'
将test代码推上去
git push origin test
完成
- 托管平台Pull Request进行审核和测试
- 点击合并代码按钮
- Pull Request的状态更新