Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 435 Bytes

git-squash-merge-branch.md

File metadata and controls

13 lines (7 loc) · 435 Bytes

Squash Merge a branch to the master

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

Example:

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