Files
30-seconds-of-code/snippets/change-remote-url.md
Angelos Chalaris 1397bb792e Deprecate expertise
2022-12-04 22:23:55 +02:00

22 lines
534 B
Markdown

---
title: Change the remote URL
tags: repository
author: chalarangelo
cover: blog_images/rocky-lake.jpg
firstSeen: 2021-04-08T19:42:57+03:00
lastUpdated: 2021-04-13T21:10:59+03:00
---
Changes the URL of the remote repository.
- Use `git remote set-url origin <url>` to change the URL of the remote repository to `<url>`.
```shell
git remote set-url origin <url>
```
```shell
git remote set-url origin https://github.com/30-seconds/30-seconds-of-code
# The remote URL is now "https://github.com/30-seconds/30-seconds-of-code"
```