1、使用 gitlab 创建合并请求

master 合并到 branch_test --> compare branches and continue --> submit merge request

提示:合并冲突。

2、使用 idea 打开项目。

(1)执行:git fetch origin

(2)切换到 master 分支,更新到最新版本。

(3)切换到 branch_test 分支,更新到最新版本。

(4)执行:git merge --no-ff master

(5)打开冲突文件,解决冲突。

冲突提示:

<<<<<<< HEAD
=======
//    @Scheduled(cron = "0 */1 * * * ?")
>>>>>>> master
    @Scheduled(initialDelay = 10000, fixedRate = 70000)

处理冲突:

//    @Scheduled(cron = "0 */1 * * * ?")
    @Scheduled(initialDelay = 10000, fixedRate = 70000)

解决冲突:

鼠标右键 --> git --> resolve conflict

(6)提交合并

git commit -m "reslove conflict"

(7)推送到远程分支

git push origin branch_test:branch_test

一起学习

Logo

一站式虚拟内容创作平台,激发创意,赋能创作,进入R空间,遇见同道,让优质作品闪耀发光。​

更多推荐