Git push all commits as single commit with custom message

git, git-commit, git-push

Solution

What you want to do is called "squash". Take a look here:

https://makandracards.com/makandra/527-squash-several-git-commits-into-a-single-commit

Problem

I was wondering if it is possible to push all my local commits (all 'unpushed' commits of the day) to the remote repository as a single commit with a custom message. None of the posts on Stack Overflow seem to answer this. I'm using Git Bash on Windows. Thanks in advance.

Original source