This content originally appeared on flaviocopes.com and was authored by flaviocopes.com
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!
This content originally appeared on flaviocopes.com and was authored by flaviocopes.com

flaviocopes.com | Sciencx (2021-11-18T05:00:00+00:00) How to add a Git remote. Retrieved from https://www.scien.cx/2021/11/18/how-to-add-a-git-remote/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.