how to merge commits in git code example
Example 1: how to compare two commits in git
$ git diff 012345..abcdef
Example 2: squash commits in git
git reset --soft HEAD~3 &&
git commit
Example 3: git merge tag to branch and squash commits
git checkout master
git merge --squash tag
git commit