push an existing repository to a new remote

git remote add origin git@example.org:username/repo.git
git branch -M main
git push -u origin main