git squash pushed commits merge-base code example
Example 1: squash pushed commits
git rebase -i origin/master~4 master
git push origin +master
Example 2: git merge pushed commits
git push origin +master
git rebase -i origin/master~4 master
git push origin +master
git push origin +master