Files
30-seconds-of-code/snippets/change-remote-url.md
Isabelle Viktoria Maciohsek ed2f41b0d8 Bake dates into snippets
2021-06-13 19:47:48 +03:00

492 B

title, tags, firstSeen, lastUpdated
title tags firstSeen lastUpdated
Change the remote URL repository,intermediate 2021-04-08T19:42:57+03:00 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"