GitHub has the nice feature of Web-based file editing. However, it seems that after editing one file I have to commit the changes for this file before continuing. Is there a way I can edit two or more files then make one commit for all the changes of them?
I think this would be better since too many unnecessary commits are annoying.
Right-click on the most recent commit and select Amend commit. Click the Summary field to modify the commit message. Optionally, you can modify or add information about the commit in the Description field. Select any uncommitted changes that you would like to add to the commit.
There is a web-based workaround:
I use this method on a PC which I don't want to install git on.
Yes there is a way to edit 2 files, when you've already edited your first file in the web browser view of GitHub. It's based on the instructions here:
https://webapps.stackexchange.com/questions/95940/how-can-i-change-multiple-files-and-submit-them-in-one-pull-request-on-github
The summary and clarified steps are:
github.com ➔ click icon at top-right ➔ Your Repositories
. Then go to the forked repository that you've just made, and switch to the "patch-1" branch. https://github.com/TargetPerson/TargetGitRepo/compare/master...MyGithubUsername:patch-1
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With