How can you Edit/Commit multiple files in Github Enterprise to make one pull request?

amigan_99
amigan_99 used Ask the Experts™
on
How can I edit two or three files in Github Enterprise and put them all into one pull request?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
If all of the files are in the same repository then your branch commit will include all of the changes to those files until your pull request is merged.

So for example, if you create a new branch, change a file and make a pull request.  Any further commits you make to that branch will be added to the existing pull request.

-saige-
Basically the same answer as @it_saige's one, just rephrasing a little:

If you work on the same repository:
- create a new branch. branch it off the branch to which you want the pull request to be performed to.
- Perform all you changes on your new branch. The changes can be on one or in several commits.
- create a pull request from your branch to the target branch

If you work in a fork of the target repository, then:
- create a new branch or just continue continue committing on the same branch as the one you want to merge to
- perform and commit your changes
- create the pull request to the chosen branch of your target repository
amigan_99Network Engineer

Author

Commented:
Thank you.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial