remote repository add code example
Example 1: git add remote
$ git remote add origin https://github.com/user/repo.git
# Set a new remote
$ git remote -v
# Verify new remote
> origin https://github.com/user/repo.git (fetch)
> origin https://github.com/user/repo.git (push)
Example 2: add local repository to remote
git remote add origin https://github.com/Nikita-153/Try.git
git branch -M main
git push -u origin main