Git rebase 自动从分支中删除文件

问题描述

我正在尝试使用最新的 master 更新 master 的一个分支。

不幸的是,当我重新调整它引发 1 个冲突时 - 没问题,我解决了这个问题并运行 git rebase --continue 然后宣布它正在删除 4 个文件(这些文件是我的分支的新文件,已提交并推送到远程分支)

$ git rebase --continue
Applying: holding commit
Applying: partial migration of candidate search to primary repo
Using index info to reconstruct a base tree...
M       .eslintrc
M       .gitignore
M       package.json
M       src/app.tsx
.git/rebase-apply/patch:2854: trailing whitespace.
            
warning: 1 line adds whitespace errors.
Falling back to patching base and 3-way merge...
Removing src/candidate/components/row-company.tsx
Removing src/candidate/components/row-candidate.tsx
Removing src/candidate/components/col-company.tsx
Removing src/candidate/components/col-candidate.tsx
Auto-merging src/app.tsx
CONFLICT (content): Merge conflict in src/app.tsx
Auto-merging package.json
Auto-merging .eslintrc
CONFLICT (content): Merge conflict in .eslintrc
error: Failed to merge in the changes.
Patch Failed at 0002 partial migration of candidate search to primary repo
hint: Use 'git am --show-current-patch' to see the Failed patch
Resolve all conflicts manually,mark them as resolved with
"git add/rm <conflicted_files>",then run "git rebase --continue".

所有 4 个文件之前都没有在 master 中,并且在分支上比 master 更新得更近。

我正在重新定位:

git checkout master
git pull
git checkout <branch>
git rebase master

我看不出 git 删除这些文件的原因,所以欢迎提出所有建议。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)