โ† flaviocopes.com

How to add a Git remote

Published Nov 18 2021

Psssst! The 2023 WEB DEVELOPMENT BOOTCAMP is starting on FEBRUARY 01, 2023! SIGNUPS ARE NOW OPEN to this 10-weeks cohort course. Learn the fundamentals, HTML, CSS, JS, Tailwind, React, Next.js and much more! โœจ

Today I had to add a remote to a Git repository after deleting the Git remote with git remote rm origin, for reasons that I wonโ€™t bore you with.

Then I added a new Git remote to a GitHub repository with

git remote add origin git@github.com:flaviocopes/myrepo.git

Change flaviocopes/myrepo to your GitHub URL.

Done!



I write books for developers ๐Ÿ‘‡๐Ÿผ

© 2023 Flavio Copes Flavio Copes made in Italy ๐Ÿ‡ฎ๐Ÿ‡น using Notion to Site Notion to Site