I merged in changes from another branch but I am getting conflicts because a file has been deleted on the remote branch but has changes on local branch.
I would like to delete the file – I tried git rm path/to/file but it says file: needs merge. What is the best way of removing the file and committing the merge?
Try using the
--forceparameter:If you want to keep the file in filesystem: