Delete file from Pull Request on GitHub

LightNight picture LightNight · Feb 29, 2012 · Viewed 83.3k times · Source

I have make pull request on git (with "xcodeproj/project.pbxproj" file - my fault), so can I delete this file from created Pull Request? Thanks..

Answer

Albert Abdonor picture Albert Abdonor · May 9, 2016

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}