How to Add a New Remote to your Git Repo

To add a new remote, use the git remote add command on the terminal, in the directory your repository is stored at.

The git remote add command takes two arguments:

  • A remote name, for example, “origin”
  • A remote URL, which you can find on the Source sub-tab of your Git repo

For example:

git remote add origin [email protected]:portfolio/space.space_name.git#set a new remotegit remote -v#Verify new remoteorigin  [email protected]:portfolio/space.space_name.git (fetch)origin  [email protected]:portfolio/space.space_name.git (push)

If you have any questions or need our assistance, don’t hesitate to contact us at [email protected]

Refer: https://articles.assembla.com/en/articles/1136998-how-to-add-a-new-remote-to-your-git-repo

1 Like