git merge --squase optional code example Example: git merge tag to branch and squash commits Click to copygit checkout master git merge --squash tag git commit