How to add a Git remote

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….


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


Print Share Comment Cite Upload Translate Updates
APA

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/

MLA
" » How to add a Git remote." flaviocopes.com | Sciencx - Thursday November 18, 2021, https://www.scien.cx/2021/11/18/how-to-add-a-git-remote/
HARVARD
flaviocopes.com | Sciencx Thursday November 18, 2021 » How to add a Git remote., viewed ,<https://www.scien.cx/2021/11/18/how-to-add-a-git-remote/>
VANCOUVER
flaviocopes.com | Sciencx - » How to add a Git remote. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/18/how-to-add-a-git-remote/
CHICAGO
" » How to add a Git remote." flaviocopes.com | Sciencx - Accessed . https://www.scien.cx/2021/11/18/how-to-add-a-git-remote/
IEEE
" » How to add a Git remote." flaviocopes.com | Sciencx [Online]. Available: https://www.scien.cx/2021/11/18/how-to-add-a-git-remote/. [Accessed: ]
rf:citation
» How to add a Git remote | flaviocopes.com | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.