Delete file from Pull Request on GitHub

Another solution would be to

  • Locally rewrite your commit(s) by removing the file, using amend or rebase git features
  • Force push your branch toward your GitHub repository

This will update the pull request by only displaying your refreshed commit(s).


You probably will merge this pull request on master, so you can checkout just this specific file again, from master, on your branch, just type:

git checkout master -- xcodeproj/project.pbxproj
git commit -m "removing a file from PR"
git push origin {YOUR BRANCH}