git checkout -b <branch_name> git --set-upstream origin <branch_name> git rebase -i Squash all commits where necessary :qw Change commit message where necessary git push +<branch_name>