Delete file from Pull Request on GitHub

后端 未结 7 1145
误落风尘
误落风尘 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:33

    New approach, since July 2018:

    Removing files from a pull request

    Previously, if you wanted to use GitHub to remove files from a pull request, you’d need to switch to the pull request branch and look for the individual file to delete it.

    Now, if you have write permission, you can click on the ‘trash’ icon for a file right in the pull request’s “Files changed” view to make a commit and remove it.

    Warning: as confirmed by RCM in the comments:

    It does delete the file.

    It DOES NOT mean it will remove your changes to the file.
    It is quite deceptively worded, in my opinion.

提交回复
热议问题