How to Add a New Remote to your Git Repository

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 repository

For example:
git remote add origin git@git.assembla.com:portfolio/space.space_name.git
#set a new remote
git remote -v
#Verify new remote
origin  git@git.assembla.com:portfolio/space.space_name.git (fetch)
origin  git@git.assembla.com:portfolio/space.space_name.git (push)
If you have any questions or need our assistance, don't hesitate to contact us at Softtechnoes@gmail.com

Post a Comment

0 Comments