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

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

김영석
김영석

Written by 김영석

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

No responses yet

Write a response