- Add old remote server to the existing repository
git remote add <old-remote-server-name> <old-remote-server-address>
- Pull the branch of old remote server to the local
git pull <old-remote-server-name> <remote-branch-name>
- Push the branch to the new remote server
git push <new-remote-server-name> <local-branch-name>
- Remove the old remote server
git remote rm <old-remote-server-name>