git remotea dd origin 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: git remote
git remote add origin https://github.com/xxx/xxx-new.git
git branch -M main
git push -u origin main