Git - Switch Remote URL

Git - Switch Remote URL

Balu Infrastructure Solution Architect | SRE | DevOps Manager | Platform Engineer | Monitoring | CICD | ODD | SQL/NoSQL | ELK | AWS | Jhipster | Microservices | Agile | Scrum
Git - Switch Remote URL

Switching remote URLs from HTTPS to SSH

List existing URLs

  • List your existing remotes in order to get the name of the remote you want to change.
git remote -v

# Output

origin (fetch)
origin (push)

Change your remote’s URL

  • Change your remote’s URL from SSH to HTTPS with the git remote set-url command.
git remote set-url origin

comments powered by Disqus