I have made 6 commits on a GitHub branch completely online and I need to squash them into 1 commit. Is there a button for me to do this? I've only made the commits on the GitHub website so is there a way to do this without using the command line?
When merging, instead of just clicking the "Merge pull request" button, click the drop down menu and select "Squash and merge" option (second option down):

It seems you can't merge your commits purely with GitHub (I did a brief search on Google, there seems no introduction with it), but you can squash your commits during merging. In your question says on a GitHub branch completely online, it seems that you are holding a second branch on GitHub. Then, while you are merging that branch to master branch, you are able to decide whether merging these 6 commits into 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