Files
30-seconds-of-code/git/snippets/change-remote-url.md
2023-05-01 22:28:09 +03:00

498 B

title, type, tags, author, cover, dateModified
title type tags author cover dateModified
Change the remote URL snippet
repository
chalarangelo rocky-lake 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>.
git remote set-url origin <url>
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"