Say I have a file in a pull request and the diff looks something like this:
file1.yml
1 - goodbye world
1 + hello world
I want the file to simply say “goodbye world”
I tried “git rm –cached file1.yml” and now the diff looks like this:
file1.yml
1 - goodbye world
…which is not what I want. I want the file not to appear in the pull request as it isn’t relevant to that branch, not remove the file entirely. Also, copying and pasting isn’t an option since I don’t know what the file on main is supposed to look like (it might be changed by someone.)
2