Can I edit two files then make one commit using GitHub Web-based editor?

git, git-commit, github

Solution

There is a web-based workaround:

- Create a temporary branch, switch to it;

- Edit multiple files, commit each file separately;

- Make pull request;

- Under Merge pull request button, choose Squash and merge (if the repo allows it), then confirm merge;

- Delete temporary branch.

I use this method on a PC which I don't want to install git on.

Problem

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.

Original source