I like this workflow. When I'm ready to merge a feature branch into master, I generally do it this way to simplify the history on master:
git switch master
git merge --squash feature
git commit -m <feature description>