How to change git remote URLs?

김영석
2 min readAug 25, 2020

how to change remote URLS from SSH to HTTPS or vice versa.

Changing a Git Remote’s URL

1. Change from SSH to HTTPS

Step1. Check the current remote URLs

git remote -v in terminal

From remote urls, I can see that I am currently using SSH protocol to connect to the remote repository.

Step2. Set the remote url to https ( change the protocol from ssh to https )

git remote set-url in terminal

2. Switch from HTTPS to SSH

Step1. Check the current remote URLs

Step2. Set the remote URLs to SSH

--

--

김영석

I love problem solving and hate repetition of tedious tasks. I like automating, streamlining, optimizing, things.