change existing repo from clone with http to clone with ssh code example
Example: change remote repository git
git remote set-url origin [email protected]:/your-repository.git
git remote set-url origin [email protected]:/your-repository.git