Merge branch to the master by combining all commits of the branch and merging as a single commit
git merge --squash {{BRANCH}}
- BRANCH: Branch which needs to be squash merged to the master
git merge --squash feature-add-dashboard
This will merge the branch feature-add-dashboard
to the master, and will squash all branch commits into a single commit in master