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

How can I edit two or three files in Github Enterprise and put them all into one pull request?
LVL 2
amigan_99Network EngineerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

it_saigeDeveloperCommented:
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-
0
gelonidaCommented:
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
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
amigan_99Network EngineerAuthor Commented:
Thank you.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Git

From novice to tech pro — start learning today.