Adding a remote in git
Rating:
Clone this SnippetSubmitted 5 years 12 months ago by peter.
- Log in to post comments
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, for example, https://example.com/repo.git
git remote add origin https://example.com/repo.git
Category:
Bash