Delete file from Pull Request on GitHub

后端 未结 7 1165
误落风尘
误落风尘 2021-02-06 23:00

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..

7条回答
  •  悲&欢浪女
    2021-02-06 23:24

    • Make a commit that deletes this file and push it.
    • Go to your fork's Github page and click Pull Request again. You will get a message stating that you already have a pull request, and that you can adjust the commit range for it.
    • Include your new commit (with the deletion).

    The offending file will still be in the changesets to be merged, mind you, so if it contains sensitive data it's best to close the pull request and wipe out the file from your fork's repository first. Github help describes how to do that.

提交回复
热议问题