Squash Commits switch to master branch git checkout master ensure our master is up to date git pull remoteRepoName master combine all commits git rebase -i master then pick fb554f5 This is commit 1 squash 2bd1903 This is commit 2 squash d987ebf This is commit 3