Create new branch git checkout -b <branch> Delete local commits git reset --hard origin/<branch> Push without overriding others' changes git push --force-with-lease Merge changes from another branch git pull origin <branch>