til/git/adding-remote-to-existing-repository.md

10 lines
221 B
Markdown
Raw Normal View History

If you have an existing repository and want to add a new remote you can use this command:
```
git remote add <name> <url>
```
Example:
```
git remote add origin git@github.com:Asocia/til.git
git push -u origin master
```