From 7e75d391a005f4fdb3116914aaae692ac5052ced Mon Sep 17 00:00:00 2001 From: Asocia Date: Sun, 2 May 2021 00:50:42 +0300 Subject: [PATCH] TIL: Adding remote to existing repository --- git/adding-remote-to-existing-repository.md | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 git/adding-remote-to-existing-repository.md diff --git a/git/adding-remote-to-existing-repository.md b/git/adding-remote-to-existing-repository.md new file mode 100644 index 0000000..638f607 --- /dev/null +++ b/git/adding-remote-to-existing-repository.md @@ -0,0 +1,9 @@ +If you have an existing repository and want to add a new remote you can use this command: +``` +git remote add +``` +Example: +``` +git remote add origin git@github.com:Asocia/til.git +git push -u origin master +```