Delete file from Pull Request on GitHub

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

    To remove a file from your PR:

    git rm path/toFile/youwantRemovedOffyour/PR
    git commit -a
    git push
    

    To remove a directory from your PR:

    git rm -r path/toFiles/youwantRemovedOffyour/PR
    git commit -a
    git push
    

提交回复
热议问题