Removing Files from a Git Merge Request

Is there a way to remove files from a Git Merge Request? When I did the Commit and Push I had only selected the files that I physically modified however, DLLs, EXEs, and other files somehow got into the Merge Request.

Suggestions are welcomed…

1 Like

Hello,

Check this please:

https://git-scm.com/docs/gitignore

Any questions, let me know

Regards

Wrong answer.

I used
git rm {filename} --cached
git commit -m "[...]"
git push
for a similar problem.

Welcome to the forum @nicolas.gaborel, thanks for your answer.
It is correct, the link above mentioned it, and mentions how to avoid it too, ignoring the files that can be with the extension dll, exe

regards

The problem is that a person put files into a merge request. .gitignore would have prevented that but how do I EDIT the merge request to eliminate the files and make sure they never show up in the history at all?

I am willing to completely delete the entire merge request and have it never show up as in just kill the entire thing and make them start over.

How can I do that?

you have to use git rm command to remove the file from the directory.

1 Like

You can remove the files by creating nem commit that remove these files.

I’ve tried several variations on this but nothing will rewrite the history. I want to completely delete the files and all references past and present.