Menu

How to add or remove remote from a Git repository

To add a git remote other than origin, run the following command.

git remote add origin-name gitUrl

 


To remove a remote from local repo

git remote remove origin-name


Note Here: 

gitUrl is the url of your git repo.  

origin-name default origin, but we could provide any unique name.

No comments:

Post a Comment