CONFLICT after rebase when file deleted in remote branch (master)

I guess I have tried almost all of the solutions available on StackOverflow but could not have my problem solved at all. So maybe someone can help me with this one.
I have a branch that needs to be rebased onto master since there is a change in master. Basically, one of the header files has been deleted and some of its contents moved to another unit (split between a new header/spurce file). The job seems pretty clean – just rebase my branch onto remote master:

git rebase origin/master

This however, creates the main issue – one file in master has been deleted, and I still have it in my branch. Here is the output:

First, rewinding head to replay your work on top of it…
Applying: checkin name…
Usind index info to reconstruct a base tree…
A filename1
M filename2
M filename3
.
.
.
waring: squelched 60 whitespace errors
warninf: 65 lines add whitespace errors
Falling back to patching base and 3-way merge …
Auto-merging file1
Auto-merging file2
Auto-merging file3
Auto-merging file4
CONFLICT (modify/delete): fileheader1.h deleted in HEAD and modified in … Version … of fileheader1.h left int tree.
Failed to merge in the changes.
Patch failed at 0001 …
The copy of the patch failed is found in:
/home/wsluser/tempo/test/Engine/.git/rebase-apply/patch
When you have resolved this problem, run “git rebase –continue”.
If you prefer to skip this patch, run “git rebase –skip” instead.
To check out the original branch and stop rebasing, run “git rebase –abort”.

So in order to resolve this conflict, I did the following:
git rm fileheader1.h
And the resulting output was:
fileheader1.h needs merge rm ‘fileheader1.h’
The file is gone from the folder; all seem happy, but there is another issue:
git rebase –continue
shows another conflict:
Applying: ……. .. .. Using index info to reconstruct a base tree … M .vscode/settings.json Failed to merge in the changes. Patch failed at 0004 …
which I resolved manually and marked it as done:
git add .vscode/settings.json
Then:
git rebase –continue
And finally, it seems all was fine:
Applying …
Then the final push with:
git push –force origin branchname
And here comes the fun part:
error: src refspec branchname does not match any. error: failed to push some refs to ‘git@…../reponame.git’
My understanding of this message is that it shall appear when one tries to commit/push changes to a branch that does not exist. However, in this case, it is not the case; the branch exists and is very real. Can someone explain/suggest a solution to this problem. I am really pulling the last hair from my head. Thanks a lot in advance!

New contributor

JJ Moore is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật