Switching remote URLs from SSH to HTTPS
Open Terminal.
Change the current working directory to your local project.
List your existing remotes in order to get the name of the remote you want to change.
git remote -v origin git@hostname:USERNAME/REPOSITORY.git (fetch) origin git@hostname:USERNAME/REPOSITORY.git (push)
Change your remote's URL from SSH to HTTPS with the
git remote set-url
command.git remote set-url origin https://hostname/USERNAME/REPOSITORY.git
Verify that the remote URL has changed.
git remote -v # Verify new remote URL origin https://hostname/USERNAME/REPOSITORY.git (fetch) origin https://hostname/USERNAME/REPOSITORY.git (push)
ความคิดเห็น
แสดงความคิดเห็น