git merge origin/master git reset origin/master git commit -am "squash" # might need some extra fixup if your branch has added files