git - Remove a modified file from pull request -
i have 3 modified files (no new files) in pull request @ moment.
i remove 1 of files pull request, pull request contains changes 2 files , leaves third in original, untouched state.
i have tried couple things (checking out original version of file, etc...) still shows changed file in pr.
is there solution this?
switch branch created pull request:
$ git checkout pull-request-branch
overwrite modified file(s) file in branch, let's consider it's master:
git checkout origin/master -- src/main/java/helloworld.java
commit , push remote:
git commit -m "removed modified file pull request" git push origin pull-request-branch
Comments
Post a Comment