2

I have commit ad push 3 files: file1, file2, and file3. What would happen if I checked in and push an updated version of file1? would the latest commmit and push file1 still be included in the same PR?

PChao
  • 417
  • 2
  • 5
  • 17
  • 1
    Does this answer your question? [How to update a pull request from forked repo?](https://stackoverflow.com/questions/9790448/how-to-update-a-pull-request-from-forked-repo) – pkamb Mar 14 '20 at 23:19
  • 1
    Since you're asking about a Pull Request, I assume you're pushing to Github? – Schwern Mar 14 '20 at 23:33

1 Answers1

3

Pull requests aren't a native feature of Git, so how they work depends on the hosting platform you're using. Since you haven't told us which one you'd like to know about, I'm going to guess it's GitHub, and you can try on your own platform if it's different.

On GitHub, it is possible to add an additional commit or to modify commits simply by pushing to the branch (including force-pushing if necessary). Whatever is in the branch with the pull request on the server will be part of the pull request.

bk2204
  • 64,793
  • 6
  • 84
  • 100