You can’t ignore some files from a pull request selectively.
Two workarounds for this can be –
First –
- Create a new branch from ‘release’
- Replace the non-required files from ‘master’
- Create pull request from this new branch
Second –
- Create a new branch from ‘master’
- Put changes of required files from ‘release’
- Create pull request from this new branch
Any of this method will work. Which will be easier depends upon how many files are to be included / excluded.