通过rebase,解决gitlab提示的pipeline failed

  • 之前提交的MQ,提示Pipeline failed:

gitlab提交MQ提示Pipeline failed的解决办法_pipeline:failed_柳鲲鹏的博客-CSDN博客

  • 又报错,给的提示:

本以为万事大吉。结果发现自己的库也提示有问题。按照上文的办法修改之后还是不对。这就奇怪了。于是就在提交中询问了一下,得到如下答复:

Assuming that you are on your local branch 'quantum6-bitmap-italic', you could do something like the following (untested):

git checkout master
git fetch upstream
git merge upstream/master
git checkout quantum6-bitmap-italic
git rebase master
git push -f

I guess that the git rebase master step will need some manual work.
  • rebase报错:

大意应该是两个库有关系,结果又有差异。于是操作了一番,报错:

$ git rebase master
Auto-merging src/base/ftsynth.c
Auto-merging src/cff/cffload.c
Auto-merging src/cff/cffparse.c
CONFLICT (content): Merge conflict in src/cff/cffparse.c
Auto-merging src/cff/cffparse.h
Auto-merging src/gzip/rules.mk
CONFLICT (content): Merge conflict in src/gzip/rules.mk
Auto-merging src/sfnt/sfwoff2.c
Auto-merging src/truetype/ttgload.c
CONFLICT (content): Merge conflict in src/truetype/ttgload.c
error: could not apply 6b296c0a6... Add a feature, support to slant a bitmap glyph
hint: Resolve all conflicts manually, mark them as resolved with
hint: "git add/rm <conflicted_files>", then run "git rebase --continue".
hint: You can instead skip this commit: run "git rebase --skip".
hint: To abort and get back to the state before "git rebase", run "git rebase --abort".
Could not apply 6b296c0a6... Add a feature, support to slant a bitmap glyph

到了rebase出错了,说是文件冲突。我就糊涂了:我确认这些文件是完全一样的,怎么就冲突了?猜测是更新时的不同历史造成。这怎么办?

  • rebase --skip

看到之后的hint,干脆使用了--skip:

$ git rebase --skip
dropping 8d0cadc28ed1b7ff308a0a6db08ee5c771696e8c update to latest -- patch contents already upstream
Successfully rebased and updated refs/heads/quantum6-bitmap-italic.

$ git push -f
warning: redirecting to https://gitlab.freedesktop.org/quantum6/freetype.git/
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
remote:
remote: View merge request for quantum6-bitmap-italic:
remote:   https://gitlab.freedesktop.org/freetype/freetype/-/merge_requests/269
remote:
To https://gitlab.freedesktop.org/quantum6/freetype
 + 8d0cadc28...d366050b9 quantum6-bitmap-italic -> quantum6-bitmap-italic (forced update)

到了这里,看起来已经解决了。

相关推荐
LinkTime_Cloud10 小时前
GitLab 将停止为中国区用户提供服务,60天迁移期如何应对? | LeetTalk Daily
大数据·运维·gitlab
sin220111 小时前
GitLab安装及使用
gitlab
极小狐21 小时前
从 GitLab.com 到 JihuLab.com 的迁移指南
gitlab·devsecops·devops·极狐gitlab·安全合规
web135085886351 天前
使用docker compose安装gitlab
docker·容器·gitlab
墨理学AI2 天前
GitHub 桌面版配置 |可视化界面进行上传到远程仓库 | gitLab 配置【把密码存在本地服务器】
gitlab·github·github 桌面版
月如琉璃2 天前
1.gitlab 服务器搭建流程
服务器·gitlab
刘大辉在路上2 天前
突发!!!GitLab停止为中国大陆、港澳地区提供服务,60天内需迁移账号否则将被删除
git·后端·gitlab·版本管理·源代码管理
tingkeiii4 天前
gitlab克隆仓库报错fatal: unable to access ‘仓库地址xxxxxxxx‘
gitlab
dami_king4 天前
项目开源能够带来什么?从中得到了什么?
开源·gitlab·github
月如琉璃5 天前
0.gitlab ubuntu20.04 部署问题解决
gitlab