I have a pull request opened where I have some project.lock.json
files which I do not want to merge while merging my branch to main branch. Is there a way to remove thos project.lock.json
files from my Pull Request?
You need to remove file, commit changes and make next push to your branch.
If you want leave file in your branch, but not to merge it to main branch, you can delete it in one commit, then add again in another. Git allows you manually accept certain commits using git-cherry-pick. You can accept each commit except that in which you have added this file again.